Extra slashes causing mirror probe to fail

Bug #1692347 reported by Brad Koehn on 2017-05-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Low
Colin Watson

Bug Description

I got an email from the mirror probe telling me that my mirror was offline. The log file indicated it was getting bad results from URLs like the following:

http://mirrors.koehn.com/ubuntureleases///zesty/ubuntu-17.04-desktop-amd64.iso

Sure enough, that URL 404s when I hit it. But what's with all the extra slashes? If I navigate to my mirror and click the links to download that file, I get a URL that looks like this:

http://mirrors.koehn.com/ubuntureleases/zesty/ubuntu-17.04-desktop-amd64.iso

I'm not sure why the mirror probe is using the extra slashes, but it's causing it to incorrectly report my mirror as being down. Please fix the mirror probe!

Related branches

Colin Watson (cjwatson) wrote :

Hm. Well, we can deduplicate the slashes (one is from the trailing slash in your mirror URL, one is from a hardcoded '%s/%s' string, and one is from the start of the path field in http://releases.ubuntu.com/.manifest), but are you sure that's really what's causing the failure? Both those URLs return 200 for me, and in general extra slashes shouldn't be a problem.

Brad Koehn (l-brad-y) wrote :

I can't say for certain; I'm now also getting 200 when I HEAD those URLs. It's entirely possible it's just a burp in the interwebs.

Launchpad QA Bot (lpqabot) wrote :
Changed in launchpad:
assignee: nobody → Colin Watson (cjwatson)
tags: added: qa-needstesting
Changed in launchpad:
status: New → Fix Committed
Colin Watson (cjwatson) on 2017-05-23
tags: added: qa-untestable
removed: qa-needstesting
Colin Watson (cjwatson) wrote :

The extra slashes are gone now, and your mirror should be probed again at some point in the next couple of days. Let us know if that doesn't seem to be happening.

Changed in launchpad:
importance: Undecided → Low
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers