api-ref: value of custom property not limited to 255 chars

Bug #1748900 reported by Matt Riedemann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Low
Brian Rosmaita

Bug Description

- [x] This doc is inaccurate in this way: ______

https://developer.openstack.org/api-ref/image/v2/index.html#create-an-image

Where it says:

"Additionally, you may include additional properties specified as key:value pairs, where the value must be a string data type. Keys and values are limited to 255 chars in length. Available key names may be limited by the cloud’s property protection configuration."

The 255 char length restriction is only for keys, not values:

https://github.com/openstack/glance/blob/265659e8c34865331568b069fdb27ea272df4eaa/glance/db/sqlalchemy/models.py#L158

-----------------------------------
Release: 16.0.0.0rc2.dev10 on 'Sat Feb 10 21:15:25 2018, commit 262e61a'
SHA:
Source: https://git.openstack.org/cgit/openstack/glance/tree/api-ref/source/v2/index.rst
URL: https://developer.openstack.org/api-ref/image/v2/index.html

summary: - Image Service API v2 (CURRENT) in Image Service API Reference
+ api-ref: value of custom property not limited to 255 chars
Changed in glance:
assignee: nobody → Brian Rosmaita (brian-rosmaita)
importance: Undecided → Low
milestone: none → rocky-1
status: New → Triaged
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/546021

Changed in glance:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/546021
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=601f82ac24038a40dc48579fc3928b6e0f0373bf
Submitter: Zuul
Branch: master

commit 601f82ac24038a40dc48579fc3928b6e0f0373bf
Author: Brian Rosmaita <email address hidden>
Date: Mon Feb 19 22:11:44 2018 -0500

    Correct length limit for custom property value

    The api-ref states that the both the key and value of a custom
    property are limited to 255 chars. This limit applies only to
    the key.

    Change-Id: I3bacca8b25f2a8339f6d8758e45c690da9968555
    Closes-bug: #1748900

Changed in glance:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/glance 17.0.0.0b1

This issue was fixed in the openstack/glance 17.0.0.0b1 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.