Misleading error message when pushing through http

Bug #638864 reported by Lluís Vilanova
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned

Bug Description

I'm using bazaar with redmine 1.0.1, with a virtual host conf on the lines of:

        WSGIScriptAliasMatch ^/bzr/.*/\.bzr/smart$ /var/vcs/bzr/bzr-smart.py
        # Allow regular GETs to work too
        RewriteEngine on
        RewriteCond %{REQUEST_URI} !^/bzr/.*/\.bzr/smart$
        RewriteRule ^/bzr/(.+)$ /home/code/bzr/$1 [L]
        <Location /bzr>
                DAV on
                WSGIApplicationGroup %{GLOBAL}

                AuthType Basic
                AuthName "Project membership authentication"
                Require valid-user
                PerlAccessHandler Apache::Authn::Redmine::access_handler
                PerlAuthenHandler Apache::Authn::Redmine::authen_handler
                RedmineDSN "DBI:mysql:database=redmine_default;host=127.0.0.1"
                RedmineDbUser "redmine"
                RedmineDbPass "redminedbpassword"
                RedmineCacheCredsMax 50
        </Location>

After creating a project, I try to push a new branch into a freshly init'ed repository, but forgot to add my user to the project, so I have no permissions to push anything into it.

The error I get is: "bzr: ERROR: Transport operation not possible: http does not support mkdir()" while an authorization error should appear to make it clear why I couldn't push the new branch.

In case it matters, the file /var/vcs/bzr/bzr-smart.py contains:

#!/usr/bin/env python
from bzrlib.transport.http import wsgi
def application(environ, start_response):
    app = wsgi.make_app(
        root='/home/code/bzr',
        prefix='/bzr/',
        readonly=False,
        enable_logging=False)
    return app(environ, start_response)

Thanks

Tags: hpss http
Martin Pool (mbp)
Changed in bzr:
importance: Undecided → Medium
status: New → Confirmed
Jelmer Vernooij (jelmer)
tags: added: hpss http
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.