Project

General

Profile

Bug #13634

Generic Method "File copy from remote source" does not report when copying a directory

Added by Félix DALLIDET 2 months ago. Updated about 1 month ago.

Status:
Released
Priority:
N/A
Category:
Generic methods - File Management
Target version:
Severity:
User visibility:
Effort required:
Priority:
0

Description

Somehow, the recursion level of the generic method is hardcoded to 0. Leading to missing reports when dealing with a directory since cfengine can not "produce" any
classes from the 0 level recursion of the directory....

We can change the recursion level to inf to fix this, even if the GM is called "file_from" its description explicitly says "Ensure that a file or directory is copied".

Even with this, we should add a check in the GM to be sure that if no classes are "produced", there will be an error message and not a missing report in the webapp and nothing in the agent logs.


Subtasks

Bug #13636: Generic Method "File copy from remote source" does not report when copying a directory (branch 4.3)ReleasedAlexis MOUSSET
Bug #13764: Generic method "File copy from remote source" doesn't copy nor report when copying a folder in Rudder 4.1ReleasedNicolas CHARLES

Associated revisions

Revision 60594f6b (diff)
Added by Félix DALLIDET 2 months ago

Fixes #13634: file_from_shared_folder does not report when trying to copy a directory

History

#1 Updated by Félix DALLIDET 2 months ago

  • Status changed from New to In progress
  • Assignee set to Félix DALLIDET

#2 Updated by Félix DALLIDET 2 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Félix DALLIDET to Alexis MOUSSET
  • Pull Request set to https://github.com/Normation/ncf/pull/841

#3 Updated by Vincent MEMBRÉ 2 months ago

  • Target version changed from 4.1.15 to 4.1.16

#4 Updated by Félix DALLIDET about 2 months ago

  • Status changed from Pending technical review to Pending release

#5 Updated by Nicolas CHARLES about 1 month ago

  • Subject changed from file_from_shared_folder does not report when trying to copy a directory to Generic Method "File copy from remote source" does not report when copying a directory

#6 Updated by Vincent MEMBRÉ about 1 month ago

  • Status changed from Pending release to Released
This bug has been fixed in Rudder 4.1.16, 4.3.6 and 5.0.2 which were released today.
Changelog
Changelog
Changelog

Also available in: Atom PDF