Project

General

Profile

Bug #10377

When copying files, digest comparison uses ctime when types are different.

Added by Alexis MOUSSET 9 months ago. Updated 8 days ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
Agent
Target version:
Target version (plugin):
Severity:
Major - prevents use of part of Rudder | no simple workaround
User visibility:
Getting started - demo | first install | level 1 Techniques
Effort required:
Medium
Pull Request:
Priority:
46

Description

When copying a file onto a directory:

 verbose: Checksum comparison replaced by ctime: files not regular

Related issues

Related to Rudder - Bug #10312: "Download files from the shared folder" behaving badly? Released
Related to Rudder - Bug #7799: directories are not replaced by a file with the same name during file copy New

History

#1 Updated by Alexis MOUSSET 9 months ago

  • Related to Bug #10312: "Download files from the shared folder" behaving badly? added

#2 Updated by Jonathan CLARKE 9 months ago

Could you clarify how this affects Rudder users please? When might one encounter this problem (using which Technique, ncf method and which parameters...) and what are the potential undesirable consequences?

#3 Updated by Alexis MOUSSET 9 months ago

This issue may happen with:

  • file_copy_from_* methods in the technique editor
  • Download files from the shared folder technique with the "digest" comparison method (which is the default)

It occurs when copying source to destination, if destination already exists and has different type (dire, file, symlink, etc.) than source. In this case, the comparison is based on creation time.

It means that if destination was created after source, source will never be copied to destination and a success report will be made.

#4 Updated by Jonathan CLARKE 9 months ago

  • Severity set to Major - prevents use of part of Rudder | no simple workaround
  • User visibility set to Getting started - demo | first install | level 1 Techniques

#6 Updated by Alexis MOUSSET 9 months ago

  • Related to Bug #7799: directories are not replaced by a file with the same name during file copy added

#7 Updated by Benoît PECCATTE 9 months ago

  • Priority set to 54

#8 Updated by Vincent MEMBRÉ 8 months ago

  • Target version changed from 3.1.19 to 3.1.20

#9 Updated by Alexis MOUSSET 8 months ago

  • Effort required set to Medium
  • Priority changed from 54 to 52

This requires some quite deep changes in the copy implementation in CFEngine, setting this to medium.

#10 Updated by Vincent MEMBRÉ 7 months ago

  • Target version changed from 3.1.20 to 3.1.21

#11 Updated by Vincent MEMBRÉ 6 months ago

  • Target version changed from 3.1.21 to 3.1.22
  • Priority changed from 52 to 51

#12 Updated by Vincent MEMBRÉ 4 months ago

  • Target version changed from 3.1.22 to 3.1.23
  • Priority changed from 51 to 49

#13 Updated by Vincent MEMBRÉ 4 months ago

  • Target version changed from 3.1.23 to 3.1.24

#14 Updated by Vincent MEMBRÉ about 2 months ago

  • Target version changed from 3.1.24 to 3.1.25
  • Priority changed from 49 to 48

#15 Updated by Benoît PECCATTE about 1 month ago

  • Priority changed from 48 to 47

#16 Updated by Vincent MEMBRÉ 8 days ago

  • Target version changed from 3.1.25 to 3.1.26
  • Priority changed from 47 to 46

Also available in: Atom PDF