Project

General

Profile

Actions

Bug #3113

closed

(ex PT/ Technique)ManageFileAndFolder: Symlinks cannot be applied if another symlink, file or folder is already existing with the same path than the symlink

Added by Nicolas PERRON almost 12 years ago. Updated over 9 years ago.

Status:
Released
Priority:
1 (highest)
Category:
Techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

We should be able to force the Technique Manage a file or a folder to create a symlink, even if there is already a symlink, file or folder.

Pull Request URL: https://github.com/Normation/rudder-techniques/pull/21

Actions #1

Updated by Nicolas PERRON almost 12 years ago

  • Description updated (diff)
  • Status changed from New to Pending technical review
  • % Done changed from 0 to 100
Actions #2

Updated by Nicolas PERRON almost 12 years ago

I've use the attribute move_osbtructions of the promise type files:

The note about this attribute in the CFE3 Reference Manual is:

If we have promised to make file X a link, but it already exists as a file, or vice-versa, or if a file is blocking the creation of a directory etc, then normally CFEngine will report an error. If this is set, existing objects will be moved aside to allow the system to heal without intervention. Files and directories are saved/renamed, but symbolic links are deleted.

Actions #3

Updated by Nicolas PERRON almost 12 years ago

  • Assignee changed from Nicolas PERRON to Nicolas CHARLES

Nicolas, could you review this pull request please ?

Actions #4

Updated by Nicolas CHARLES almost 12 years ago

  • Status changed from Pending technical review to In progress
  • Assignee changed from Nicolas CHARLES to Nicolas PERRON

Nicolas, I've made some comments on your pull request. It's correct, but the wording should be corrected
Thank you

Actions #5

Updated by Nicolas CHARLES almost 12 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Nicolas PERRON to Nicolas CHARLES
Actions #6

Updated by Nicolas PERRON almost 12 years ago

  • Status changed from Pending technical review to Pending release

Applied in changeset commit:058f4e43d34f5d738595d8bd292de58e18ba5fda.

Actions #7

Updated by Nicolas CHARLES almost 12 years ago

Applied in changeset commit:8c2cafbc6ab074bc25975cdc0f019104590039f3.

Actions #8

Updated by Nicolas PERRON almost 12 years ago

  • Target version changed from 2.4.2 to 2.3.10

This ticket should not have been targeted to 2.4.2. Fortunately, its pull request has been targeted to branch 2.3 !

Actions #9

Updated by Nicolas PERRON almost 12 years ago

Applied in changeset commit:168840772d9b367c4bb3791cc83778d2f971b7e4.

Actions #10

Updated by Nicolas PERRON almost 12 years ago

Applied in changeset commit:5a76d55b4d9c0c930959842d02f18e9a3558bf44.

Actions #11

Updated by Jonathan CLARKE almost 12 years ago

  • Project changed from Rudder to 24
  • Category deleted (Techniques)
Actions #12

Updated by Nicolas PERRON over 11 years ago

  • Status changed from Pending release to Released
Actions #13

Updated by Benoît PECCATTE over 9 years ago

  • Project changed from 24 to Rudder
  • Category set to Techniques
Actions

Also available in: Atom PDF