aborts rather than printing warning when configuration file is inaccessible

Bug #837324 reported by Jelmer Vernooij
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
High
Jelmer Vernooij
bzr (Ubuntu)
Fix Released
High
Jelmer Vernooij

Bug Description

when opening a configuration file raises PermissionDenied, bzr prints it (with a backtrace) and aborts.

Instead, it should just ignore the configuration file, print a warning and continue.

This is causing also causing problems when running the tests under fakeroot. When we create a safety net, the users' configuration file is read. If this configuration file is e.g. in /root the tests blow up spectacularly.

Tags: config

Related branches

Jelmer Vernooij (jelmer)
Changed in bzr (Ubuntu):
status: New → Triaged
importance: Undecided → High
assignee: nobody → Jelmer Vernooij (jelmer)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package bzr - 2.4.0-3ubuntu1

---------------
bzr (2.4.0-3ubuntu1) oneiric; urgency=low

  * Merge from Debian. Remaining changes:
   + Drop build dependencies on python-{subunit,meliae,lzma,medusa}, which are
     not in main.
   + Disable support for running selftest in parallel (requires subunit).

bzr (2.4.0-3) unstable; urgency=medium

  * Fix regression in open_write_stream, which breaks the bzr-builddeb
    testsuite. Closes: #638219, LP: #831351

bzr (2.4.0-2) unstable; urgency=medium

  * Ignore permission denied errors when opening configuration files.
    LP: #837324, Closes: #639004

bzr (2.4.0-1) unstable; urgency=low

  * New upstream release.
   + Suggest python-gpgme python-gpgme-dbg for new signatures features.
   + Build-conflict with python-gpgme for the moment because of
     failing GPG tests when it is installed.
 -- Jelmer Vernooij <email address hidden> Wed, 31 Aug 2011 17:08:56 +0200

Changed in bzr (Ubuntu):
status: Triaged → Fix Released
Vincent Ladeuil (vila)
Changed in bzr:
milestone: none → 2.5b1
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.