Bug #3646
closedTechnique "Dowload a file from shared-folder" is not working properly with a source file and a directory as destination
Description
When using technique "Download a file from shared-folder", I want to copy a file in a directory so i configured my directive like this:
Path of the file to be copied: toto.test.txt
Destination of the file : /test_rudder/soft/sources/httpd/
What should be the recursion level of the copy : only this file
File comparison method : Exists
Owner of the file : root
Group of the file : root
Permission to apply : user RWX / group R-X / other ---
And this in not working.
I expect this to copy "toto.test.txt" in "/test_rudder/soft/sources/httpd/" and apply permissions on "/test_rudder/soft/sources/httpd/toto.test.txt"
This is not what is happenning:
the file is not copied in the destination directory. and permissions are applied to the directory and to all its files.
And it's reporting success ... So its mostly lying :)
We shoudl treat that case when the source is a "file" and the destination is a "directory" it should copy on "directory/file" and apply permissions on that file only
Updated by Jonathan CLARKE about 11 years ago
- Status changed from New to 8
- Priority changed from 1 (highest) to 2
- Target version changed from 2.4.13 to 2.6.10
Updated by Benoît PECCATTE about 10 years ago
- Project changed from 24 to Rudder
- Category changed from Techniques to Techniques
Updated by Alexis Mousset over 8 years ago
- Is duplicate of Bug #7799: directories are not replaced by a file with the same name during file copy added