update volume's metadata returns 500 error

Bug #1598007 reported by wangxiyuan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Low
wangxiyuan

Bug Description

The volume update API also allow users to update the volume'metadata. But cinder doesn't check the length limit. It'will raise 500 error if the metadata is longer than 255. We should check it and raise 413 at the api layer.

wangxiyuan (wangxiyuan)
Changed in cinder:
assignee: nobody → wangxiyuan (wangxiyuan)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

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

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

Reviewed: https://review.openstack.org/336427
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=f6aec5bb96424668ac8ff9ae48899dc5354ea26a
Submitter: Jenkins
Branch: master

commit f6aec5bb96424668ac8ff9ae48899dc5354ea26a
Author: wangxiyuan <email address hidden>
Date: Fri Jul 1 16:32:38 2016 +0800

    check the validity of metadata when update volume

    The volume update API also allow users to update the volume'metadata.
    But cinder doesn't check the length limit. It'will raise 500 error
    if the metadata is longer than 255. We should check it and raise
    413 at the api layer to keep the same with the volume metadata
    update API.

    Change-Id: I3928ffff9aab6a8071d0641fa6b40b10b1f6bc10
    Closes-bug: #1598007

Changed in cinder:
status: In Progress → Fix Released
wanghao (wanghao749)
Changed in cinder:
milestone: none → newton-2
importance: Undecided → Low
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/cinder 9.0.0.0b2

This issue was fixed in the openstack/cinder 9.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.