Swift-1.4.8 - GET and HEAD return different content-type

Asked by Netmagic Solutions on 2012-05-31

Hi,

We had a Ubuntu 11.10 + Swift 1.4.7 cluster, We did upgraded the OS to 12.04 along with upgraded the swift to 1.4.8.

Previously when we used to HEAD or GET any object, it used to return same Content-Length and Content Type for both methods.

Now, post upgrade it has started returning different Content-Length and Content Type for both HEAD and GET methods.

Example -

When we HEAD a folder in container, it returns Content-Type = text/html and Content-Length = 108

and

When we do a GET to the same folder it returns Content-Type = application/directory and Content-Length = 0

We suspected the upgrade and created a fresh OS (12.04) + Swift 1.4.8 cluster from scratch and then tried the same.

It still has the same behaviour.

Please help.

Regards,

Viral
Netmagic Solutions

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu swift Edit question
Assignee:
No assignee Edit question
Solved by:
Netmagic Solutions
Solved:
2012-05-31
Last query:
2012-05-31
Last reply:

Hi,

Found a solution for this issue.

The package python-webob_1.1.1-1_all.deb which is part of Ubuntu 12.04, is having an issue.

We did stopped swift proxy service and removed the same and then installed http://archive.ubuntu.com/ubuntu/pool/main/p/python-webob/python-webob_1.0.8-1_all.deb on the server.

restarted the proxy-server and things started working normally.

Thanks,

Viral