Bug #12344
closed
RudderUniqueId is not replaced when using OUTPATH in metadata, causing no report in File Permissions
Added by Nicolas CHARLES over 6 years ago.
Updated over 6 years ago.
Description
I created a Directive based on File Permissions technique v2.2, with Rudder 4.3, and when trying to set permissions to a non existing file, even if i setted "Ignore absent" option
It probably happens in 4.1 also
- Subject changed from No reports in Technique "File permissions" is file doesn't exist to No reports in Technique "File permissions"
- Target version changed from 4.1.11 to 4.3.0~rc3
/var/rudder/cfengine-community/inputs/filesPermissions# tree
.
├── 2.2_04f409ae_fa6e_4495_85d4_594cc5eb1533
│ └── filesPermissions.cf
└── RudderUniqueID
└── permlist
2 directories, 2 files
rudder info: CfReadFile: Could not examine file '/var/rudder/cfengine-community/inputs/filesPermissions/2.2_04f409ae_fa6e_4495_85d4_594cc5eb1533/../04f409ae_fa6e_4495_85d4_594cc5eb1533/permlist' (stat: No such file or directory)
So RudderUniqueId has not the same replacement in path and template, and it is not replaced at all in outpath (see #11862)
- Translation missing: en.field_tag_list set to Blocking 4.3
- Subject changed from No reports in Technique "File permissions" to RudderUniqueId is not replaced when using OUTPATH in metadata, causing no report in File Permissions
- Related to Bug #11862: RudderUniqueID is not replaced when used in OUTPATH added
i mmetadata.xml, i have
<TMLS>
<TML name="filesPermissions"/>
<TML name="permlist">
<INCLUDED>false</INCLUDED>
<OUTPATH>filesPermissions/RudderUniqueID/permlist</OUTPATH>
</TML>
</TMLS>
- Status changed from New to In progress
- Assignee set to François ARMAND
- Status changed from In progress to Pending technical review
- Assignee changed from François ARMAND to Nicolas CHARLES
- Pull Request set to https://github.com/Normation/rudder/pull/1887
- Status changed from Pending technical review to Pending release
- Status changed from Pending release to Released
This bug has been fixed in Rudder 4.3.0~rc3 which was released today.
Also available in: Atom
PDF