Bug #2053

Header value too large when using pithos web client

Added by Angus Griffin about 12 years ago. Updated about 11 years ago.

Status:Closed Start date:02/16/2012
Priority:Medium Due date:
Assignee:Antony Chazapis % Done:

100%

Category:Pithos Spent time: -
Target version:-

Description

Recieve "Header value too large." message (captured via Fiddler) when using web client. Header is 319 chars long, limit is 256 as per line 792 in pithos/api/util.py, def update_request_headers(request):.

value of "v" is as below, 319 chars long:

__utma=246273428.1873047809.1326240549.1329366327.1329370269.30; __utmz=246273428.1329370269.30.19.utmccn=(organic)|utmcsr=google|utmctr=|utmcmd=organic; __utmb=246273428; sessionid=26f4a4753380fcb46731dec656718d18; csrftoken=ee10e5c0f4c3e838964cdf57da44d6af; _pithos2_a=test%40test.com%7C8tzIzdhNC4bHWYesr7%2BvNA%3D%3D

"v" from my browser is filled up with Google Analytics values - probably not an unusual situation.

I don't think there would be any adverse affects to increasing this to, say, 2k (2048) chars. HTTP doesn't define a limit as far as I am aware.

Associated revisions

Revision 62bf8157
Added by Antony Chazapis about 12 years ago

Check only user-defined meta for size limits.

Fixes #2053

Revision 62bf8157
Added by Antony Chazapis about 12 years ago

Check only user-defined meta for size limits.

Fixes #2053

History

#1 Updated by Antony Chazapis about 12 years ago

  • Assignee set to Antony Chazapis
  • Target version set to 0.9.0 (beta)

True. The 256 character limit should only apply to user-defined metadata - not all headers.

The OpenStack documentation states (3.2.2): "The container metadata restrictions are the same as object metadata, you can have 4096 bytes maximum overall metadata, 90 distinct metadata items at the most. Each may have a 128 character name length with a 256 max value length each."

#2 Updated by Antony Chazapis about 12 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

#3 Updated by Vangelis Koukis about 11 years ago

  • Project changed from Pithos to Synnefo
  • Target version deleted (0.9.0 (beta))

#4 Updated by Vangelis Koukis about 11 years ago

  • Category set to Pithos

Also available in: Atom PDF