Comment 3 for bug 269746

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

It seems like Launchpad shouldn't raise PermissionDenied when a user tries to access a path inside of a branch but rather NoSuchFile.

The following patch to bzr fixes the issue (but could mask other bugs, so is incorrect):

=== modified file 'bzrlib/controldir.py'
--- bzrlib/controldir.py 2011-12-14 12:25:34 +0000
+++ bzrlib/controldir.py 2011-12-16 17:01:05 +0000
@@ -738,6 +738,8 @@
                 return result, urlutils.unescape(a_transport.relpath(url))
             except errors.NotBranchError, e:
                 pass
+ except errors.PermissionDenied:
+ pass
             try:
                 new_t = a_transport.clone('..')
             except errors.InvalidURLJoin: