OPTIONS http request gives spaces instead of commas in "Allow" header

Bug #1717682 reported by Hanno Böck on 2017-09-16
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Launchpad itself
High
Colin Watson

Bug Description

The HTTPS OPTIONS method allows to query a server for the supported HTTP methods. The server is supposed to reply with an "Allow" header with a comma-separated list. However the launchpad server gives a space-separated list.

Example:
curl -sI -X OPTIONS https://launchpad.net/|grep Allow:
gives output:
Allow: GET HEAD POST

For a correct server:
curl -sI -X OPTIONS https://www.ubuntu.com/|grep Allow:
gives:
Allow: GET, HEAD, OPTIONS

I can't judge where the bug is, as I don't know how the infrastructure of launchpad.net works. It may be a bug in a load balancer or proxy in front of the real software.

Related branches

Colin Watson (cjwatson) wrote :

Thanks. It's in the Launchpad codebase itself, in fact. I'll get it fixed.

Changed in launchpad:
assignee: nobody → Colin Watson (cjwatson)
importance: Undecided → High
status: New → In Progress
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
Colin Watson (cjwatson) on 2017-09-20
tags: added: qa-ok
removed: qa-needstesting
Colin Watson (cjwatson) wrote :

$ curl -sI -X OPTIONS https://launchpad.net/|grep Allow:
Allow: GET, HEAD, POST

Thanks again for the report.

Changed in launchpad:
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