https with smart server gives error "http does not support mkdir() "

Bug #680390 reported by Charon
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned

Bug Description

I have set up a bazaar smart-server using apache2.2 and LDAP as authentification scheme. The server is up and running such that I can do "bzr log https+urllib://user@hostname/bzr". This command acutally asks me for the LDAP password of the user. Since I am using the smart server, it should be possible to work remotely on the URL provided.

However, every other command (like init or init-repo) results in the error message:

bzr: ERROR: Transport operation not possible: http does not support mkdir()

despite the fact, that the webserver is running a smart server which should allow for the creation of directories and pushing and so on. Interesting thing is that this error pops up, before I am asked for authentication, so bzr never thinks about checking for a smart server running.

Is there a way to tell bazaar, that it is supposed to communicate with a smart server? Or is this just a bug?

Revision history for this message
Charon (charon030) wrote :

I should add that I use
https+urllib://
because
bzr+https://
gives this error message

bzr: ERROR: Connection error: curl connection error (server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none).

bzr+https+urllib:// gives
bzr: ERROR: Unsupported protocol for url "bzr+https+urllib://

So probably this should be added to bazaar?!

Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 680390] Re: https with smart server gives error "http does not support mkdir() "

On 23 November 2010 19:17, Charon <email address hidden> wrote:
> I should add that I use
> https+urllib://
> because
> bzr+https://
> gives this error message
>
> bzr: ERROR: Connection error: curl connection error (server certificate
> verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile:
> none).

I think if you install apt:ca-certificates this should be fixed.

> bzr+https+urllib:// gives
> bzr: ERROR: Unsupported protocol for url "bzr+https+urllib://
>
> So probably this should be added to bazaar?!

That's what I was going to suggest you should use. I am a bit
surprised it doesn't work.

--
Martin

Revision history for this message
Charon (charon030) wrote :

OK, the report above is for version 2.1.1 (Ubuntu 10.04 LTS). Could be that it was fixed since then.

Revision history for this message
Vincent Ladeuil (vila) wrote :

@Charon: did you reproduce the problem with a newer version of bzr ?

Changed in bzr:
status: New → Incomplete
Revision history for this message
Charon (charon030) wrote :

Yes, I was able to reproduce it even with bzr 2.3b4.

Andrew Bennetts (spiv)
tags: added: hpss
removed: server smart
tags: added: http
Changed in bzr:
importance: Undecided → Medium
status: Incomplete → Confirmed
Revision history for this message
Ramon Ziai (rziai) wrote :

@Charon: I was seeing the same issue until I noticed in the Apache logs that the client request to the bzr-smart.py helper script was denied. I adjusted the Apache ACLs for the scripts directory and the problem went away... Just a thought.

Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
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.