404 response for a HEAD on an object returns a body, violating HTTP/1.1 spec

Bug #1546844 reported by Tomoe Sugihara
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Swift3
New
Undecided
Unassigned

Bug Description

Release: Liberty
Platform: RDO on CentOS7

HEAD request for an non-existent object returns 404 (correct) with a body(incorrect), which violates HTTP/1.1 standard:
https://tools.ietf.org/html/rfc7231#section-4.3.2

This leads to a weird behavior in aws-sdk-ruby (1.60.2) where it tries to read the next response after HEAD and parse the status code, but it ends up reading the body that was incorrectly returned by the previous 404 response.

This is causing a problem for bosh director to access swift as a S3 compatible storage.

ref:
https://<email address hidden>/message/WZDC277UP67IHQKSRQXGSDKSMUOSN34L/

Tomoe Sugihara (tomoe)
description: updated
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.