Bug #5180

Unquote and encode ONLY the synnefo-related headers when receiving an HTTP request

Added by Stavros Sachtouris about 10 years ago. Updated about 10 years ago.

Status:In Progress Start date:03/04/2014
Priority:Medium Due date:03/05/2014
Assignee:Stavros Sachtouris % Done:

100%

Category:kamaki Spent time: 8.00 hours
Target version:v0.13 Estimated time:12.00 hours

Related issues

related to ./kamaki - Feature #5150: Take care of HTTP headers with unicode values Feedback 02/24/2014 02/25/2014

Associated revisions

Revision 6ad9e577
Added by Stavros Sachtouris about 10 years ago

Restrict http response header encoding

Refs: #5180

In ResponseManager, do not encode all headers to unicode.
Encode ONLY the headers mentioned by the caller method.

A caller method can use the headers_to_decode and header_prefices
property-getter/setter methods to set a list of header keys and
a list of header key prefices for encoding. All keys are case
insensitive.

Revision 6293aa78
Added by Stavros Sachtouris about 10 years ago

Allow Client objects to set headers for encoding

Refs: #5180

Revision 1870855f
Added by Stavros Sachtouris about 10 years ago

Add lists of expected headers in Pithos client

Refs: #5180

Revision 7c738aab
Added by Stavros Sachtouris about 10 years ago

Add X-Image- to expected http header prefices

Refs: #5180

Revision 75e73aab
Added by Stavros Sachtouris about 10 years ago

Fix details that ruin internal unicode objects

Refs: #5150, #5180

Specifics:
- the image path is conctructed with a + operator, use the '%s'
notation instead
- Do not quote everything on the URL, because it destroyes
? and & characters. Encode and quote only what needs to be

History

#1 Updated by Stavros Sachtouris about 10 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 100

Also available in: Atom PDF