API returns SRE_Pattern object instead of helpful message

Bug #1340879 reported by aeva black
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
Invalid
Medium
Unassigned
WSME
Fix Released
Undecided
Lucas Alvares Gomes

Bug Description

When attempting to update a node property with an invalid resource name, the error message is not helpful:

$ ironic node-update 8f68da58-3853-4a8e-a7d9-3abe96cfa607 add properties/foo:bar=baz

Invalid input for field/attribute path. Value: '/properties/foo:bar'. Value should match the pattern <_sre.SRE_Pattern object at 0x7fa0816a8810> (HTTP 400)

This should actually describe the expected format, not list the internal class name and ref.

Tags: api
aeva black (tenbrae)
Changed in ironic:
importance: Undecided → Medium
status: New → Triaged
tags: added: api
Changed in ironic:
milestone: none → juno-3
aeva black (tenbrae)
description: updated
Changed in wsme:
assignee: nobody → Lucas Alvares Gomes (lucasagomes)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to wsme (master)

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

Changed in wsme:
status: New → In Progress
aeva black (tenbrae)
Changed in ironic:
milestone: juno-3 → none
Revision history for this message
Lucas Alvares Gomes (lucasagomes) wrote :

Marking as invalid in Ironic, since the bug is in WSME

Changed in ironic:
status: Triaged → Invalid
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to wsme (master)

Reviewed: https://review.openstack.org/106995
Committed: https://git.openstack.org/cgit/stackforge/wsme/commit/?id=5de10eabe1ae14c2d4e0d281f8d3a042a124ff42
Submitter: Jenkins
Branch: master

commit 5de10eabe1ae14c2d4e0d281f8d3a042a124ff42
Author: Lucas Alvares Gomes <email address hidden>
Date: Wed Nov 20 16:32:58 2013 +0000

    Fix printing object reference on StringType

    <object>.pattern is the correct pattern string from which the object
    was compiled from.

    Change-Id: I35eeca17d6edcc1a210ed7b3de2856a678fdc180
    Closes-Bug: #1340879

Changed in wsme:
status: In Progress → Fix Committed
Changed in wsme:
milestone: none → 0.8.0
status: Fix Committed → Fix Released
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.