Filtering by tags is broken in v3

Bug #1489126 reported by Mike Fedosin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Glance
Opinion
Low
Gonzalo De La Torre

Bug Description

When I want to filter list of artifacts by tag I get a 500 error:

http://localhost:9292/v3/artifacts/myartifact/v2.0/drafts?tag=hyhyhy

<html>
 <head>
  <title>500 Internal Server Error</title>
 </head>
 <body>
  <h1>500 Internal Server Error</h1>
  The server has either erred or is incapable of performing the requested operation.<br /><br />

 </body>
</html>

Tags: artifacts
Changed in glance:
assignee: nobody → Kairat Kushaev (kkushaev)
Changed in glance:
assignee: Kairat Kushaev (kkushaev) → nobody
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on glance (master)

Change abandoned by Mike Fedosin (<email address hidden>) on branch: master
Review: https://review.openstack.org/217359

Changed in glance:
status: New → Confirmed
Changed in glance:
assignee: nobody → Gonzalo De La Torre (gonzalo-delatorre)
Revision history for this message
Gonzalo De La Torre (gonzalo-delatorre) wrote :

Using Mike Fedosin proposal returned "Supported" when running :

http://localhost:9292/v3/artifacts/myartifact/v2.0/drafts?tag=hyhyhy

In addition, another test was made which returned "Supported" by using:

curl -s -X POST http://localhost:9292/v3/artifacts/myartifact/v2.0/drafts -H "Content-Type: application/json" -d {"name": "test_tag", "version": "100", "tags": ["some_tag"]}

Procedure posted on:
https://github.com/gonzalo2kx/OpenStack/wiki/Bug-%231---Project:-Glance---Bug-%231489126

Changed in glance:
status: Confirmed → In Progress
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/238626

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on glance (master)

Change abandoned by Gonzalo De La Torre (<email address hidden>) on branch: master
Review: https://review.openstack.org/238327
Reason: Modifications submitted:

https://review.openstack.org/#/c/238626/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by Gonzalo De La Torre (<email address hidden>) on branch: master
Review: https://review.openstack.org/238626
Reason: Under Review

Changed in glance:
importance: Undecided → Low
Revision history for this message
Gonzalo De La Torre (gonzalo-delatorre) wrote :

Resumed proposed change. Available for review on:

https://review.openstack.org/#/c/238327/

Mike Fedosin (mfedosin)
Changed in glance:
status: In Progress → Opinion
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by Gonzalo De La Torre (<email address hidden>) on branch: master
Review: https://review.openstack.org/238327
Reason: There is a test to filter by tags that needs to be created which needs to be added on top of this contribution.

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.