[http] double slash in request causes 404 for valid repositories

Bug #854647 reported by Jelmer Vernooij
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Dulwich
Fix Released
High
Jelmer Vernooij
Launchpad itself
Triaged
High
Unassigned

Bug Description

using a double slash in a request can cause some git http servers to reply with a 404, even if the URL would otherwise be valid.

dulwich should make sure to not add a slash if there is already one present at the end of a URL.

Related branches

Changed in launchpad:
status: New → Triaged
importance: Undecided → High
Jelmer Vernooij (jelmer)
Changed in launchpad:
status: Triaged → In Progress
assignee: nobody → Jelmer Vernooij (jelmer)
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
Revision history for this message
William Grant (wgrant) wrote :

Don't know any examples of this particular issue, but git imports in general still seem to work.

tags: added: qa-ok
removed: qa-needstesting
Revision history for this message
Daniel Holbach (dholbach) wrote :
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

It looks like this isn't actually fixed yet, I'll have another look. Sorry.

William Grant (wgrant)
Changed in launchpad:
status: Fix Committed → In Progress
Revision history for this message
Daniel Holbach (dholbach) wrote :

The weird thing is that this used to work. At least until 2011-07-30. I don't know if the remote branch or its hosting changed though.

Revision history for this message
Daniel Holbach (dholbach) wrote :

Above I was referring to lp:xwax.

Jelmer Vernooij (jelmer)
Changed in dulwich:
status: Fix Committed → Fix Released
milestone: none → 0.8.1
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

This seems to be a Launchpad-specific issue. xwax works fine with bzr-git here:

bzr branch http://www.xwax.co.uk/devel/xwax.git/

Jelmer Vernooij (jelmer)
Changed in launchpad:
assignee: Jelmer Vernooij (jelmer) → nobody
status: In Progress → Triaged
Jelmer Vernooij (jelmer)
Changed in launchpad:
status: Triaged → In Progress
assignee: nobody → Jelmer Vernooij (jelmer)
status: In Progress → Triaged
assignee: Jelmer Vernooij (jelmer) → nobody
tags: added: code-import git
Curtis Hovey (sinzui)
tags: removed: qa-ok
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.