Project

General

Profile

Bug #12344

RudderUniqueId is not replaced when using OUTPATH in metadata, causing no report in File Permissions

Added by Nicolas CHARLES 8 months ago. Updated 8 months ago.

Status:
Released
Priority:
N/A
Category:
Techniques
Target version:
Severity:
User visibility:
Effort required:
Priority:
0
Tags:

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


Subtasks

Bug #12361: compilation error due to missing refactoring piecesReleasedNicolas CHARLES

Related issues

Related to Rudder - Bug #11862: RudderUniqueID is not replaced when used in OUTPATHReleased

Associated revisions

Revision c68f3934 (diff)
Added by François ARMAND 8 months ago

Fixes #12344: RudderUniqueId is not replaced when using OUTPATH in metadata, causing no report in File Permissions

Revision 24c63aca (diff)
Added by François ARMAND 8 months ago

Fixes #12344: RudderUniqueId is not replaced when using OUTPATH in metadata, causing no report in File Permissions

History

#1 Updated by Nicolas CHARLES 8 months ago

  • 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)

#2 Updated by Nicolas CHARLES 8 months ago

  • Tags 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

#3 Updated by Nicolas CHARLES 8 months ago

  • Related to Bug #11862: RudderUniqueID is not replaced when used in OUTPATH added

#4 Updated by Nicolas CHARLES 8 months ago

i mmetadata.xml, i have

  <TMLS>
    <TML name="filesPermissions"/>
    <TML name="permlist">
      <INCLUDED>false</INCLUDED>
      <OUTPATH>filesPermissions/RudderUniqueID/permlist</OUTPATH>
    </TML>
  </TMLS>

#5 Updated by François ARMAND 8 months ago

  • Status changed from New to In progress
  • Assignee set to François ARMAND

#6 Updated by François ARMAND 8 months ago

  • 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

#7 Updated by François ARMAND 8 months ago

  • Status changed from Pending technical review to Pending release

#9 Updated by Vincent MEMBRÉ 8 months ago

  • 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