Project

Profile

Help

Issue #3502

closed

Can't list versions for a repository

Added by daviddavis about 6 years ago. Updated over 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 34
Quarter:

Description

$ http http://localhost:8000/api/v3/repositories/e2bf7dc1-8638-420f-be13-1c60e660249f/versions/
HTTP/1.0 400 Bad Request

[
    "No value supplied for content filter"
]

Bug was created in this PR:

https://github.com/pulp/pulp/pull/3373/files#diff-3072a203aa1fcb7d2fc8af1885d4d6ceR144

The problem is that I tried to make http http://localhost:8000/api/v3/repositories/e2bf7dc1-8638-420f-be13-1c60e660249f/versions/?content= return a 400 error but it also affected requests where no content filter is supplied. See the tasks endpoint as an example:

$ http http://localhost:8000/api/v3/tasks/
HTTP/1.0 200 OK

$ http http://localhost:8000/api/v3/tasks/?worker=                                                                                                                                     
HTTP/1.0 400 Bad Request

[
    "No value supplied for worker filter."
]

No idea why these filters are behaving differently.

Also available in: Atom PDF