Actions
Bug #16427
openTechniqueTemplate seems to be unable to follow a symlink
Pull Request:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Infrequent - complex configurations | third party integrations
Effort required:
Priority:
0
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).
Updated by Vincent MEMBRÉ almost 5 years ago
- Target version changed from 6.0.1 to 6.0.2
Updated by Vincent MEMBRÉ almost 5 years ago
- Target version changed from 6.0.2 to 6.0.3
Updated by Vincent MEMBRÉ almost 5 years ago
- Target version changed from 6.0.3 to 6.0.4
Updated by Vincent MEMBRÉ over 4 years ago
- Target version changed from 6.0.4 to 6.0.5
Updated by Vincent MEMBRÉ over 4 years ago
- Target version changed from 6.0.5 to 6.0.6
Updated by Vincent MEMBRÉ over 4 years ago
- Target version changed from 6.0.6 to 6.0.7
Updated by Vincent MEMBRÉ over 4 years ago
- Target version changed from 6.0.7 to 6.0.8
Updated by François ARMAND over 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.
Updated by Vincent MEMBRÉ over 4 years ago
- Target version changed from 6.0.8 to 6.0.9
Updated by Vincent MEMBRÉ about 4 years ago
- Target version changed from 6.0.9 to 6.0.10
- Priority changed from 20 to 19
Updated by Vincent MEMBRÉ about 4 years ago
- Target version changed from 6.0.10 to 798
Updated by Benoît PECCATTE over 3 years ago
- Target version changed from 798 to 6.1.14
- Priority changed from 19 to 18
Updated by Vincent MEMBRÉ over 3 years ago
- Target version changed from 6.1.14 to 6.1.15
Updated by Vincent MEMBRÉ over 3 years ago
- Target version changed from 6.1.15 to 6.1.16
Updated by Vincent MEMBRÉ about 3 years ago
- Target version changed from 6.1.16 to 6.1.17
Updated by Vincent MEMBRÉ about 3 years ago
- Target version changed from 6.1.17 to 6.1.18
Updated by Vincent MEMBRÉ almost 3 years ago
- Target version changed from 6.1.18 to 6.1.19
Updated by Vincent MEMBRÉ over 2 years ago
- Target version changed from 6.1.19 to 6.1.20
Updated by Vincent MEMBRÉ over 2 years ago
- Target version changed from 6.1.20 to 6.1.21
Updated by Vincent MEMBRÉ over 2 years ago
- Target version changed from 6.1.21 to old 6.1 issues to relocate
Updated by Alexis Mousset 7 months ago
- Target version changed from old 6.1 issues to relocate to 7.3.15
- Priority changed from 18 to 0
Updated by Vincent MEMBRÉ 6 months ago
- Target version changed from 7.3.15 to 7.3.16
Updated by Vincent MEMBRÉ 5 months ago
- Target version changed from 7.3.16 to 7.3.17
Actions