*** This bug is a duplicate of bug 125144 ***
    https://bugs.launchpad.net/bugs/125144

This is not a duplicate of 125144!
125144 is about the broken symlink causing a crash
this one is about a non-readable .bzr folder causing a crash

With current trunk:
Traceback (most recent call last):
  File "/home/jasper/.bazaar/plugins/gtk/olive/__init__.py", line 323, in 
on_button_location_jump_clicked
    if self.set_path(location):
  File "/home/jasper/.bazaar/plugins/gtk/olive/__init__.py", line 215, in 
set_path
    self.wt, self.wtpath = WorkingTree.open_containing(path)
  File "/usr/lib/python2.5/site-packages/bzrlib/workingtree.py", line 325, in 
open_containing
    control, relpath = bzrdir.BzrDir.open_containing(path)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 825, in 
open_containing
    return BzrDir.open_containing_from_transport(transport)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 846, in 
open_containing_from_transport
    result = BzrDir.open_from_transport(a_transport)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 800, in 
open_from_transport
    redirected)
  File "/usr/lib/python2.5/site-packages/bzrlib/transport/__init__.py", line 
1616, in do_catching_redirections
    return action(transport)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 777, in 
find_format
    transport, _server_formats=_server_formats)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 1569, in 
find_format
    return format.probe_transport(transport)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 1579, in 
probe_transport
    format_string = transport.get(".bzr/branch-format").read()
  File "/usr/lib/python2.5/site-packages/bzrlib/transport/local.py", line 147, 
in get
    self._translate_error(e, path)
  File "/usr/lib/python2.5/site-packages/bzrlib/transport/__init__.py", line 
316, in _translate_error
    raise errors.PermissionDenied(path, extra=e)
bzrlib.errors.PermissionDenied: Permission denied: "/etc/.bzr/branch-format": 
[Errno 13] Permission denied: u'/etc/.bzr/branch-format'

And from a terminal:
/etc$ bzr status
bzr: ERROR: Permission denied: "/etc/.bzr/branch-format": [Errno 13] Permission 
denied: u'/etc/.bzr/branch-format'

So, Olive should catch the permission denied error when trying to open a
non-readable .bzr folder, show a warning message stating so and loading
the offending folder like an ordinary folder.

-- 
olive-gtk leaves user in the dark with file permissions crash
https://bugs.launchpad.net/bugs/229044
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to