trove user-update-attributes returns 500

Bug #1298760 reported by Mat Lowery
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Released
Medium
Peter Stachowski

Bug Description

Calling the following (even though user "mat" doesn't exist):

trove user-update-attributes 844e8922-ad04-4da0-9f9a-29591e9c070c mat

Returns a 500 and shows the following stack:

Traceback (most recent call last):
  File "/opt/stack/trove/trove/common/wsgi.py", line 247, in execute_action
    self.controller.validate_request(action, action_args)
  File "/opt/stack/trove/trove/common/wsgi.py", line 393, in validate_request
    error_msg = self.format_validation_msg(errors)
  File "/opt/stack/trove/trove/common/wsgi.py", line 377, in format_validation_msg
    f_path = "%s%s" % (path[0],
IndexError: list index out of range

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to trove (master)

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

Changed in trove:
assignee: nobody → Denis M. (dmakogon)
status: New → In Progress
Revision history for this message
Denis M. (dmakogon) wrote :

Wrong bug mentioned in review

Changed in trove:
assignee: Denis M. (dmakogon) → nobody
Mat Lowery (mat-lowery)
Changed in trove:
status: In Progress → New
Changed in trove:
importance: Undecided → Medium
status: New → Triaged
Changed in trove:
assignee: nobody → Peter Stachowski (petel)
Changed in trove:
milestone: none → juno-1
Changed in trove:
status: Triaged → In Progress
Changed in trove:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to trove (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/97952

Thierry Carrez (ttx)
Changed in trove:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to trove (master)

Reviewed: https://review.openstack.org/97952
Committed: https://git.openstack.org/cgit/openstack/trove/commit/?id=d655a922b5448512fabb455337b42f67cc720a44
Submitter: Jenkins
Branch: master

commit d655a922b5448512fabb455337b42f67cc720a44
Author: Peter Stachowski <email address hidden>
Date: Wed Jun 4 17:53:45 2014 -0400

    Added an int-test for user-update-attributes

    Added an integration test to validate that passing in no new
    attributes to user-update-attributes causes an exception to
    be thrown.

    Change-Id: I6eba530973cc18834ed08eb91127101d9abb1210
    Related-Bug: #1298760

Thierry Carrez (ttx)
Changed in trove:
milestone: juno-1 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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