Return 400 when name is more than 255 characters

Bug #1599314 reported by OpenStack Infra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Low
Brian Rosmaita

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 <email address hidden>
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

Tags: doc glance
Revision history for this message
Brian Rosmaita (brian-rosmaita) wrote :

Will fix this as part of the WADL -> RST api-ref work.

Changed in glance:
status: New → Confirmed
importance: Undecided → Low
assignee: nobody → Brian Rosmaita (brian-rosmaita)
Changed in glance:
status: Confirmed → In Progress
Revision history for this message
Nikhil Komawar (nikhil-komawar) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/333031
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=368f7dbcc5509f19467e3d68d819736cb73bbf52
Submitter: Jenkins
Branch: master

commit 368f7dbcc5509f19467e3d68d819736cb73bbf52
Author: bria4010 <email address hidden>
Date: Wed Jun 22 17:15:39 2016 -0400

    WADL to RST migration (part 2 - metadefs)

    This brings the Images API Reference to the glance tree as part of
    the effort described here:
    https://wiki.openstack.org/wiki/Documentation/Migrate#API_Reference_Plan

    This patch includes the Metadefs API reference, with the content
    revised and corrected.

    Change-Id: I8c10893e92edb7c608b58d33539ab57ab4f57d3e
    Closes-bug: #1599314

Changed in glance:
status: In Progress → Fix Released
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/glance 13.0.0.0b2

This issue was fixed in the openstack/glance 13.0.0.0b2 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.