Issue #392
closedGET works in different way for Upload and rest of API items
Description
Description of problem:
Creating an Upload Request returns a dictionary {upload url: url, upload_id: id}, but List All Upload Requests returns a dictionary {upload_idS: [id1, ..., idN]}. Furthermore, in contrast, for example for Repo list returns list of dictionaries. In other words, GET works in different way for Upload and rest of API items
Version-Release number of selected component (if applicable):
2.3
How reproducible:
always
Steps to Reproduce:
1. curl -i -H \"Accept: application/json\" -X POST -k -u admin:admin 'https://localhost/pulp/api/v2/content/uploads/'
2. curl -i -H \"Accept: application/json\" -X GET -k -u admin:admin 'https://localhost/pulp/api/v2/content/uploads/'
3. To comapre with other API items please implement the same (create and list Repo item for example)
Actual results:
HTTP/1.1 201 Created
Date: Tue, 28 Jan 2014 13:49:15 GMT
Server: Apache/2.4.6 (Fedora) OpenSSL/1.0.1e-fips mod_wsgi/3.4 Python/2.7.5
Location: /pulp/api/v2/content/uploads/17b576cc-bf09-48b3-9208-eb30b0a31bf6/
Content-Length: 132
Content-Type: application/json
{"upload_id": "17b576cc-bf09-48b3-9208-eb30b0a31bf6", "_href": "/pulp/api/v2/content/uploads/17b576cc-bf09-48b3-9208-eb30b0a31bf6/"}
HTTP/1.1 200 OK
Date: Tue, 28 Jan 2014 13:52:15 GMT
Server: Apache/2.4.6 (Fedora) OpenSSL/1.0.1e-fips mod_wsgi/3.4 Python/2.7.5
Content-Length: 56
Content-Type: application/json
{"upload_ids": ["17b576cc-bf09-48b3-9208-eb30b0a31bf6"]}
Expected results:
HTTP/1.1 201 Created
Date: Tue, 28 Jan 2014 13:49:15 GMT
Server: Apache/2.4.6 (Fedora) OpenSSL/1.0.1e-fips mod_wsgi/3.4 Python/2.7.5
Location: /pulp/api/v2/content/uploads/17b576cc-bf09-48b3-9208-eb30b0a31bf6/
Content-Length: 132
Content-Type: application/json
{"upload_id": "17b576cc-bf09-48b3-9208-eb30b0a31bf6", "_href": "/pulp/api/v2/content/uploads/17b576cc-bf09-48b3-9208-eb30b0a31bf6/"}
HTTP/1.1 200 OK
Date: Tue, 28 Jan 2014 13:52:15 GMT
Server: Apache/2.4.6 (Fedora) OpenSSL/1.0.1e-fips mod_wsgi/3.4 Python/2.7.5
Content-Length: 56
Content-Type: application/json
[{"upload_id": "17b576cc-bf09-48b3-9208-eb30b0a31bf6", "_href": "/pulp/api/v2/content/uploads/17b576cc-bf09-48b3-9208-eb30b0a31bf6/"}]
Additional info:
+ This bug was cloned from Bugzilla Bug #1058771 +
Updated by bmbouter over 5 years ago
- Status changed from NEW to CLOSED - WONTFIX
Updated by bmbouter over 5 years ago
- Severity set to 1. Low
Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.
Updated by bmbouter about 4 years ago
- Category deleted (
14)
We are removing the 'API' category per open floor discussion June 16, 2020.