← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1599314] [NEW] Return 400 when name is more than 255 characters

 

Public bug reported:

https://review.openstack.org/329288
Dear bug triager. This bug was created since a commit was marked with DOCIMPACT.
Your project "openstack/glance" is set up so that we directly report the documentation bugs against it. If this needs changing, the docimpact-group option needs to be added for the project. You can ask the OpenStack infra team (#openstack-infra on freenode) for help if you need to.

commit 9eed745871814d611788f560965f78be8e7b5b0d
Author: bhagyashris <bhagyashri.shewale@xxxxxxxxxxx>
Date:   Fri Jun 3 09:16:44 2016 +0530

    Return 400 when name is more than 255 characters
    
    APIs listed below are returning 500 error if you pass name more than
    255 characters.
    1. metadef tag create
    2. metadef property create
    3. metadef object create
    
    Added maxLength check in schema to ensure name should not be more than
    255 characters.
    
    DocImpact: Earlier for all of the above APIs, maxLength check
    for "name" paramerter was not present in schema.
    Now all of the above APIs will return 400 HTTPBadRequest
    if user passes "name" more than 255 characters.
    
    Partial-Bug: #1585917
    Change-Id: Ib85d703442d39a1f5b79b383f6b2dd800b9c7b20

** Affects: glance
     Importance: Undecided
         Status: New


** Tags: doc glance

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1599314

Title:
      Return 400 when name is more than 255 characters

Status in Glance:
  New

Bug description:
  https://review.openstack.org/329288
  Dear bug triager. This bug was created since a commit was marked with DOCIMPACT.
  Your project "openstack/glance" is set up so that we directly report the documentation bugs against it. If this needs changing, the docimpact-group option needs to be added for the project. You can ask the OpenStack infra team (#openstack-infra on freenode) for help if you need to.

  commit 9eed745871814d611788f560965f78be8e7b5b0d
  Author: bhagyashris <bhagyashri.shewale@xxxxxxxxxxx>
  Date:   Fri Jun 3 09:16:44 2016 +0530

      Return 400 when name is more than 255 characters
      
      APIs listed below are returning 500 error if you pass name more than
      255 characters.
      1. metadef tag create
      2. metadef property create
      3. metadef object create
      
      Added maxLength check in schema to ensure name should not be more than
      255 characters.
      
      DocImpact: Earlier for all of the above APIs, maxLength check
      for "name" paramerter was not present in schema.
      Now all of the above APIs will return 400 HTTPBadRequest
      if user passes "name" more than 255 characters.
      
      Partial-Bug: #1585917
      Change-Id: Ib85d703442d39a1f5b79b383f6b2dd800b9c7b20

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


Follow ups