_FileMover.rename may fail if the target directory is read-only
Bug #531989 reported by
Karoly Negyesi
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Medium
|
Unassigned |
Bug Description
I had a directory which was not writeable by the user and needed to run BZR_PDB=1 bzr -Derror up and then pp from_, to to figure out where it died (thanks to vila for telling me about this magical command :) ).
pp output:
<chx> (u'/ebs/ home/kbridges/ public_ html/examiner- d7/.bzr/ checkout/ limbo/new- 83', u'/ebs/ home/kbridges/ public_ html/examiner- d7/sites/ parc.dev. examiner. com/modules'
ls of the relevant dir:
<chx> dr-xr-xr-x 4 kbridges kbridges 51 Feb 25 14:33 /ebs/home/ kbridges/ public_ html/examiner- d7/sites/ parc.dev. examiner. com
and the traceback:
bzr: ERROR: exceptions.OSError: [Errno 13] Permission denied
Traceback (most recent call last): python2. 4/site- packages/ bzrlib/ commands. py", line 842, in exception_ to_return_ code python2. 4/site- packages/ bzrlib/ commands. py", line 1037, in run_bzr python2. 4/site- packages/ bzrlib/ commands. py", line 654, in run_argv_aliases **all_cmd_ args) python2. 4/site- packages/ bzrlib/ builtins. py", line 1413, in run info=view_ info), possible_ transports= possible_ transports) python2. 4/site- packages/ bzrlib/ workingtree. py", line 2216, in update tree(old_ tip, change_reporter) python2. 4/site- packages/ bzrlib/ mutabletree. py", line 53, in tree_write_locked python2. 4/site- packages/ bzrlib/ workingtree. py", line 2256, in _update_tree reporter= change_ reporter) python2. 4/site- packages/ bzrlib/ merge.py" , line 1538, in merge_inner python2. 4/site- packages/ bzrlib/ merge.py" , line 508, in do_merge _do_merge_ to(merge) python2. 4/site- packages/ bzrlib/ merge.py" , line 480, in _do_merge_to do_merge( ) python2. 4/site- packages/ bzrlib/ merge.py" , line 622, in do_merge apply(no_ conflicts= True) python2. 4/site- packages/ bzrlib/ transform. py", line 1453, in apply insertions( mover) python2. 4/site- packages/ bzrlib/ transform. py", line 1581, in _apply_insertions rename( self._limbo_ name(trans_ id), full_path) python2. 4/site- packages/ bzrlib/ transform. py", line 2798, in rename rename( from_, to)
File "/usr/lib64/
return the_callable(*args, **kwargs)
File "/usr/lib64/
ret = run(*run_argv)
File "/usr/lib64/
return self.run(
File "/usr/lib64/
view_
File "/usr/lib64/
return self._update_
File "/usr/lib64/
return unbound(self, *args, **kwargs)
File "/usr/lib64/
change_
File "/usr/lib64/
return merger.do_merge()
File "/usr/lib64/
self.
File "/usr/lib64/
merge.
File "/usr/lib64/
results = self.tt.
File "/usr/lib64/
modified_paths = self._apply_
File "/usr/lib64/
mover.
File "/usr/lib64/
os.
OSError: [Errno 13] Permission denied