Project

General

Profile

Actions

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.

Status:
Released
Priority:
N/A
Category:
Techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

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 1 (0 open1 closed)

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

Related issues 1 (0 open1 closed)

Related to Rudder - Bug #11862: RudderUniqueID is not replaced when used in OUTPATHReleasedNicolas CHARLESActions
Actions #1

Updated by Nicolas CHARLES over 6 years 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)
Actions #2

Updated by Nicolas CHARLES over 6 years ago

  • 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
Actions #3

Updated by Nicolas CHARLES over 6 years ago

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

Updated by Nicolas CHARLES over 6 years ago

i mmetadata.xml, i have

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

Actions #5

Updated by François ARMAND over 6 years ago

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

Updated by François ARMAND over 6 years 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
Actions #7

Updated by François ARMAND over 6 years ago

  • Status changed from Pending technical review to Pending release
Actions #9

Updated by Vincent MEMBRÉ over 6 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.3.0~rc3 which was released today.

Actions

Also available in: Atom PDF