Project

Profile

Help

Issue #7829

Updated by daviddavis about 4 years ago

Assume that you have a directory that exists and is writable but you don't own it. You should be able to export to it but it fails currently. 

 Steps to reproduce: 

 ``` 
 $ sudo mkdir /data 
 $ sudo chmod -r 777 /data 
 $ pulp file remote create --name test --url https://fixtures.pulpproject.org/file/PULP_MANIFEST  
 $ pulp file repository create --name test --remote test 
 $ pulp exporter pulp create --name test --path /data --repository test file 
 $ pulp export pulp run --exporter test 
 ``` 

 Error: 

 ``` 
 File "/home/vagrant/devel/pulpcore/pulpcore/app/tasks/export.py", line 172, in pulp_export 
     os.chmod(pulp_exporter.path, 0o775)    # let owner and group read and write the directory 
 PermissionError: [Errno 1] Operation not permitted: '/data' 
 ```

Back