Project

General

Profile

Actions

Bug #16427

open

TechniqueTemplate seems to be unable to follow a symlink

Added by Félix DALLIDET over 4 years ago. Updated almost 2 years ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
Techniques
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Infrequent - complex configurations | third party integrations
Effort required:
Priority:
18
Name check:
To do
Fix check:
To do
Regression:

Description

I tried to create several plugins using a "hack" to create ncf techniques under specifics directives categories.

Here is the global fs schema:

[root@server configuration-repository]# ls -l techniques/CIS_plugin/Set_permissions/1.0/
total 8
-rw-rw-r--. 1 root rudder 2653 18 déc.  09:38 metadata.xml
-rw-rw-r--. 1 root rudder 1224 18 déc.  09:38 rudder_reporting.cf

[root@server configuration-repository]# ls -l ncf/50_techniques/Set_permissions/Set_permissions.cf
-rw-rw----. 1 ncf-api-venv rudder 1650 18 déc.  09:38 ncf/50_techniques/Set_permissions/Set_permissions.cf

[root@server configuration-repository]# ls -l techniques/ncf_techniques/ | grep Set_permissions
lrwxrwxrwx. 1 root rudder  29 18 déc.  09:37 Set_permissions -> ../CIS_plugin/Set_permissions

This works super fine, I then create the given directive via some API scripts.
But, when I try to use this technique to create a new directive via the webapp, I always end up with the following error:

⇨  Error when trying to open template 'TechniqueResourceIdByPath(List(techniques, ncf_techniques, Set_permissions, 1.0),rudder_reporting.cf)'. Check that the file exists with a .st extension and is correctly commited in Git, or that the metadata for the technique are corrects.;Error when trying to open template 'TechniqueResourceIdByPath(List(techniques, ncf_techniques, Set_permissions, 1.0),rudder_reporting.cf)'. Check that the file exists with a .st extension and is correctly commited in Git, or that the metadata for the technique are corrects.

It seems like something using TechniqueResourceIdByPath cna not read the given path since it is under a symlink. It may come from git if we are reading from it since it will not add files under symlink.
Also, if I change the technique via the technique editor, the changes are saved, the files are changed but the directive page does not and will not display the changes (in the parameters for instance).

Actions #1

Updated by Vincent MEMBRÉ over 4 years ago

  • Target version changed from 6.0.1 to 6.0.2
Actions #2

Updated by Vincent MEMBRÉ over 4 years ago

  • Target version changed from 6.0.2 to 6.0.3
Actions #3

Updated by Vincent MEMBRÉ about 4 years ago

  • Target version changed from 6.0.3 to 6.0.4
Actions #4

Updated by Vincent MEMBRÉ about 4 years ago

  • Target version changed from 6.0.4 to 6.0.5
Actions #5

Updated by Vincent MEMBRÉ almost 4 years ago

  • Target version changed from 6.0.5 to 6.0.6
Actions #6

Updated by Vincent MEMBRÉ almost 4 years ago

  • Target version changed from 6.0.6 to 6.0.7
Actions #7

Updated by Vincent MEMBRÉ almost 4 years ago

  • Target version changed from 6.0.7 to 6.0.8
Actions #8

Updated by François ARMAND almost 4 years ago

  • Severity set to Minor - inconvenience | misleading | easy workaround
  • User visibility changed from Operational - other Techniques | Rudder settings | Plugins to Infrequent - complex configurations | third party integrations
  • Priority changed from 0 to 20

I'm not totally sure we want to allow that. It seems that we need to check implication of allowing a symlink here.

Actions #9

Updated by Vincent MEMBRÉ over 3 years ago

  • Target version changed from 6.0.8 to 6.0.9
Actions #10

Updated by Vincent MEMBRÉ over 3 years ago

  • Target version changed from 6.0.9 to 6.0.10
  • Priority changed from 20 to 19
Actions #11

Updated by Vincent MEMBRÉ over 3 years ago

  • Target version changed from 6.0.10 to 798
Actions #12

Updated by Benoît PECCATTE almost 3 years ago

  • Target version changed from 798 to 6.1.14
  • Priority changed from 19 to 18
Actions #13

Updated by Vincent MEMBRÉ almost 3 years ago

  • Target version changed from 6.1.14 to 6.1.15
Actions #14

Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 6.1.15 to 6.1.16
Actions #15

Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 6.1.16 to 6.1.17
Actions #16

Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 6.1.17 to 6.1.18
Actions #17

Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 6.1.18 to 6.1.19
Actions #18

Updated by Vincent MEMBRÉ about 2 years ago

  • Target version changed from 6.1.19 to 6.1.20
Actions #19

Updated by Vincent MEMBRÉ almost 2 years ago

  • Target version changed from 6.1.20 to 6.1.21
Actions #20

Updated by Vincent MEMBRÉ almost 2 years ago

  • Target version changed from 6.1.21 to old 6.1 issues to relocate
Actions

Also available in: Atom PDF