Issue #456
closedno id in _href in a response body when retrive all event listeners
Description
Description of problem:
According docs _href in a response body should contain id of an event listener.
In fact, it doesn't.
Version-Release number of selected component (if applicable):
rpm -qa pulp-server
pulp-server-2.4.0-0.20.beta.el6.noarch
How reproducible:
always
Steps to Reproduce:
curl -k -X GET https://admin:admin@localhost/pulp/api/v2/events/
[{"_href": "/pulp/api/v2/events/", "notifier_config": {"url": "http://localhost/api"}, "_ns": "event_listeners", "event_types": ["repo.sync.start"], "_id": {"$oid": "53a1ba0fb7e943519221158a"}, "id": "53a1ba0fb7
e943519221158a", "notifier_type_id": "http"}]
curl -i -H "Accept: application/json" -X POST -k -u admin:admin -d '{"notifier_type_id" : "http", "notifier_config" : {"url" : "http://localhost/api"},"event_types" : ["repo.sync.finish
", "repo.publish.finish"]}' 'https://localhost/pulp/api/v2/events/'
HTTP/1.1 201 Created
Date: Thu, 19 Jun 2014 14:11:45 GMT
Server: Apache/2.2.15 (Red Hat)
Location: /pulp/api/v2/events/53a2efa1b7e943519470c186/
Content-Length: 303
Connection: close
Content-Type: application/json
{"_href": "/pulp/api/v2/events/53a2efa1b7e943519470c186/", "notifier_config": {"url": "http://localhost/api"}, "_ns": "event_listeners", "event_types": ["repo.sync.finish", "repo.publish.finish"], "_id": {"$oid"
: "53a2efa1b7e943519470c186"}, "id": "53a2efa1b7e943519470c186", "notifier_type_id": "http"}
curl -k -X GET https://admin:admin@localhost/pulp/api/v2/events/
[{"_href": "/pulp/api/v2/events/", "notifier_config": {"url": "http://localhost/api"}, "_ns": "event_listeners", "event_types": ["repo.sync.start"], "_id": {"$oid": "53a1ba0fb7e943519221158a"}, "id": "53a1ba0fb7
e943519221158a", "notifier_type_id": "http"}, {"_href": "/pulp/api/v2/events/", "notifier_config": {"url": "http://localhost/api"}, "_ns": "event_listeners", "event_types": ["repo.sync.finish", "repo.publish.fin
ish"], "_id": {"$oid": "53a2efa1b7e943519470c186"}, "id": "53a2efa1b7e943519470c186", "notifier_type_id": "http"}]
Expected results:
[{"_href": "/pulp/api/v2/events/53a1ba0fb7e943519221158a/", "notifier_config": {"url": "http://localhost/api"}, "_ns": "event_listeners", "event_types": ["repo.sync.start"], "_id": {"$oid": "53a1ba0fb7e943519221158a"}, "id": "53a1ba0fb7
e943519221158a", "notifier_type_id": "http"}, {"_href": "/pulp/api/v2/events/53a2efa1b7e943519470c186/", "notifier_config": {"url": "http://localhost/api"}, "_ns": "event_listeners", "event_types": ["repo.sync.finish", "repo.publish.fin
ish"], "_id": {"$oid": "53a2efa1b7e943519470c186"}, "id": "53a2efa1b7e943519470c186", "notifier_type_id": "http"}]
+ This bug was cloned from Bugzilla Bug #1111255 +
Updated by ipanova@redhat.com over 8 years ago
***** Bug 1192102 has been marked as a duplicate of this bug. ***
+ This comment was cloned from Bugzilla #1111255 comment 1 +
Updated by ipanova@redhat.com over 8 years ago
https://github.com/pulp/pulp/pull/1640
+ This comment was cloned from Bugzilla #1111255 comment 2 +
Updated by dkliban@redhat.com over 8 years ago
- Severity set to 1. Low
- Platform Release set to 2.7.0
Updated by dkliban@redhat.com over 8 years ago
- Status changed from MODIFIED to 5
Updated by igulina@redhat.com over 8 years ago
- Status changed from 5 to 6
>> rpm -qa pulp-server
pulp-server-2.7.1-0.1.alpha.git.324.ab390d2.el6.noarch
>> curl -k -X GET https://admin:admin@localhost/pulp/api/v2/events/
[]
>>curl -i -H "Accept: application/json" -X POST -k -u admin:admin -d '{"notifier_type_id" : "http", "notifier_config" : {"url" : "http://localhost/api"},"event_types" : ["repo.sync.finish", "repo.publish.finish"]}' 'https://localhost/pulp/api/v2/events/'
HTTP/1.1 201 CREATED
Date: Wed, 17 Jun 2015 11:58:59 GMT
Server: Apache/2.2.15 (Red Hat)
Content-Length: 303
Location: https://localhost/pulp/api/v2/events/558161049166d811fae1b177/
Connection: close
Content-Type: application/json
{"_href": "/pulp/api/v2/events/558161049166d811fae1b177/", "notifier_config": {"url": "http://localhost/api"}, "_ns": "event_listeners", "event_types": ["repo.sync.finish", "repo.publish.finish"], "_id": {"$oid": "558161049166d811fae1b177"}, "id": "558161049166d811fae1b177", "notifier_type_id": "http"}
>> curl -k -X GET https://admin:admin@localhost/pulp/api/v2/events/
[{"_href": "/pulp/api/v2/events/558161049166d811fae1b177/", "notifier_config": {"url": "http://localhost/api"}, "_ns": "event_listeners", "event_types": ["repo.sync.finish", "repo.publish.finish"], "_id": {"$oid": "558161049166d811fae1b177"}, "id": "558161049166d811fae1b177", "notifier_type_id": "http"}]
Updated by amacdona@redhat.com almost 8 years ago
- Status changed from 6 to CLOSED - CURRENTRELEASE
Updated by bmbouter over 3 years ago
- Category deleted (
14)
We are removing the 'API' category per open floor discussion June 16, 2020.