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

Bug #1331517 reported by Malini Kamalambal on 2014-06-18
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
zaqar
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}'

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) on 2014-06-19
Changed in marconi:
assignee: nobody → peng fei wang (wpf)
Malini Kamalambal (malini-pk) wrote :

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

peng fei wang (wpf) wrote :

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

wangxiyuan (wangxiyuan) on 2017-05-15
tags: added: bugsmash
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers