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:
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' controldir. py 2011-12-14 12:25:34 +0000 controldir. py 2011-12-16 17:01:05 +0000
return result, urlutils. unescape( a_transport. relpath( url)) NotBranchError, e:
pass PermissionDenie d:
new_ t = a_transport. clone(' ..') InvalidURLJoin:
--- bzrlib/
+++ bzrlib/
@@ -738,6 +738,8 @@
except errors.
+ except errors.
+ pass
try:
except errors.