Visiting just "/download" or "/download/" redirects to a bad URL

Bug #247992 reported by Matt Nordhoff
2
Affects Status Importance Assigned to Milestone
loggerhead
Fix Released
Wishlist
Matt Nordhoff

Bug Description

Latest Loggerhead trunk + bzr-search_integration and bzr.dev.

Visiting "/some/branch/download" or "/some/branch/download/" redirects to "/some/branch../changes", which obviously doesn't work.

This is probably caused by this code in loggerhead/controllers/download_ui.py, but I don't know the right fix:

        if len(args) < 2:
            raise httpexceptions.HTTPMovedPermanently(self._branch.url('../changes'))

Related branches

Revision history for this message
Matt Nordhoff (mnordhoff) wrote :

I just unmarked this as a duplicate of bug 243422. This code *does* do (some) validation of user input; it just has a buggy response.

Martin Albisetti (beuno)
Changed in loggerhead:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Martin Albisetti (beuno) wrote :

Does this still apply?

Changed in loggerhead:
status: Confirmed → Triaged
Revision history for this message
Matt Nordhoff (mnordhoff) wrote : Re: [Bug 247992] Re: Visiting just "/download" or "/download/" redirects to a bad URL

Yes.

Changed in loggerhead:
assignee: nobody → Matt Nordhoff (mnordhoff)
status: Triaged → Fix Committed
Changed in loggerhead:
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.