[SQLAlchemy] Query Claim does not return messages list in response

Bug #1331517 reported by Malini Kamalambal
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
zaqar
Incomplete
Undecided
peng fei wang

Bug Description

Per API spec query claim should return,

{
  "age": 19,
  "ttl": 30,
  "messages": [
    ...
  ]
}

The actual response retuned does not have a message list.
Instead it just has a body.
See below.

'{"body": {"QueuingKeyQueuingKey": "QueuingValueQueuingV"}, "age": 0, "href": "/v1/queues/Queues-Test-402577142/messages/53a1a9ba361ace5dfcf011a2", "ttl": 340307}'

Tags: bugsmash
Revision history for this message
peng fei wang (wpf) wrote :

with the latest code, I can't reproduce it with http://xxxxx:8888/v1/queues/samplequeue/claims/63c9a59d

what I got as below:

{
    "age": 90,
    "href": "/v1/queues/samplequeue/claims/63c9a59d",
    "messages": [{
        "body": {
            "event": "a",
            "order": 1
        },
        "age": 90,
        "href": "/v1/queues/samplequeue/messages/5c693a52?claim_id=63c9a59d",
        "ttl": 3000
    }, {
        "body": {
            "event": "b",
            "order": 1
        },
        "age": 90,
        "href": "/v1/queues/samplequeue/messages/5c693a51?claim_id=63c9a59d",
        "ttl": 3000
    }, {
        "body": {
            "event": "c",
            "order": 1
        },
        "age": 90,
        "href": "/v1/queues/samplequeue/messages/5c693a50?claim_id=63c9a59d",
        "ttl": 3000
    }, {
        "body": {
            "event": "d",
            "order": 1
        },
        "age": 90,
        "href": "/v1/queues/samplequeue/messages/5c693a57?claim_id=63c9a59d",
        "ttl": 3000
    }, {
        "body": {
            "event": "e",
            "order": 1
        },
        "age": 90,
        "href": "/v1/queues/samplequeue/messages/5c693a56?claim_id=63c9a59d",
        "ttl": 3000
    }, {
        "body": {
            "event": "f",
            "order": 1
        },
        "age": 90,
        "href": "/v1/queues/samplequeue/messages/5c693a55?claim_id=63c9a59d",
        "ttl": 3000
    }],
    "ttl": 600
}

Changed in marconi:
status: New → Incomplete
peng fei wang (wpf)
Changed in marconi:
assignee: nobody → peng fei wang (wpf)
Revision history for this message
Malini Kamalambal (malini-pk) wrote :

@wpf, are you running the server against sqlalchemy driver?

Revision history for this message
peng fei wang (wpf) wrote :

yes, since I'd stop my local mongodb ,and remove local marconi.conf

wangxiyuan (wangxiyuan)
tags: added: bugsmash
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.