avoid calling len in sizelimit middleware
Bug #1131857 reported by
Dan Prince
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
High
|
Dan Prince | ||
OpenStack Compute (nova) |
Fix Released
|
High
|
Dan Prince |
Bug Description
Nova's sizelimit middleware should avoid using len() which could cause extra memory buffering to occur on large requests.
Changed in nova: | |
assignee: | nobody → Dan Prince (dan-prince) |
importance: | Undecided → High |
status: | New → In Progress |
Changed in nova: | |
milestone: | none → grizzly-rc1 |
Changed in cinder: | |
assignee: | nobody → Dan Prince (dan-prince) |
importance: | Undecided → High |
status: | New → In Progress |
Changed in cinder: | |
milestone: | none → grizzly-rc2 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | grizzly-rc1 → 2013.1 |
Changed in cinder: | |
milestone: | grizzly-rc2 → 2013.1 |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/22033 github. com/openstack/ nova/commit/ 20fb97df97cdfcb c1d98a0b1f7d948 06d996e274
Committed: http://
Submitter: Jenkins
Branch: master
commit 20fb97df97cdfcb c1d98a0b1f7d948 06d996e274
Author: Dan Prince <email address hidden>
Date: Fri Feb 15 10:41:30 2013 -0500
Updates to OSAPI sizelimit middleware.
Updates the OSAPI sizelimit middleware so that we use avoid calling
len on a request body which could cause a really large request
to get buffered into memory.
Also updates the middleware to return HTTP 413 which is a more
correct error code in this case (previously it returned just 400).
Fixes LP Bug #1131857.
Change-Id: Id8bc5eeb0fba94 82809edd12543a7 5163e1227e9