← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1550671] [NEW] The limit of injected file conetent length is incorrect

 

Public bug reported:

According to http://developer.openstack.org/api-ref-compute-v2.1.html#createServer , the perameter personality
has limits about path length and content length. And it is pointed out that the content should be base64 encoded
string and the content length limit is the limit of base64 decoded raw data, not the base64 encoded data.

But in the current implementation:
  https://github.com/openstack/nova/blob/master/nova/compute/api.py#L266-L277
we are checking the base64 encoded data.

That is, for example, the quota limit for content length is 256, and user provided a file with the length of 256,
exception.OnsetFileContentLimitExceeded error will rasie as after base64 encoding, the file length will grow.

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1550671

Title:
  The limit of injected file conetent length is incorrect

Status in OpenStack Compute (nova):
  New

Bug description:
  According to http://developer.openstack.org/api-ref-compute-v2.1.html#createServer , the perameter personality
  has limits about path length and content length. And it is pointed out that the content should be base64 encoded
  string and the content length limit is the limit of base64 decoded raw data, not the base64 encoded data.

  But in the current implementation:
    https://github.com/openstack/nova/blob/master/nova/compute/api.py#L266-L277
  we are checking the base64 encoded data.

  That is, for example, the quota limit for content length is 256, and user provided a file with the length of 256,
  exception.OnsetFileContentLimitExceeded error will rasie as after base64 encoding, the file length will grow.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1550671/+subscriptions


Follow ups