server error on creating project that exists in file system already

Bug #912117 reported by Guy K. Kloss
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sloecode
Fix Released
Medium
Unassigned

Bug Description

When creating a project that already exists in the file system, Sloecode returns with a "system error". This should be handled more gracefully. Although, this is *not* really a common use case, but can happen in case something goes wrong somewhere. This is what the Apache error log shows:

[Thu Jan 05 16:50:56 2012] [error] [client 156.62.70.135] Error - <class 'bzrlib.errors.FileExists'>: File exists: u'/srv/sloecode/bzr-repos/project/dms717287/.bzr': [Errno 17] File exists: '/srv/sloecode/bzr-repos/project/dms717287/.bzr'

In contrary, when the (also) not so common use case occurs that a user should be created that exists in the file system already, Sloecode handles the issue more gracefully, and *only* the error log contains a warning:

[Thu Jan 05 16:48:03 2012] [error] Warning: path '/srv/sloecode/bzr-repos/person/gkloss' already exists, not creating repository for user 'gkloss'

Related branches

Changed in sloecode:
milestone: none → 1.1
Changed in sloecode:
status: New → Confirmed
assignee: nobody → Thomi Richards (thomir)
importance: Undecided → Medium
Changed in sloecode:
status: Confirmed → Fix Committed
Changed in sloecode:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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