Project

Profile

Help

Issue #7245

closed

Unexpected param error not being returned

Added by daviddavis about 2 years ago. Updated about 2 years ago.

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

Description

The unexpected param error is not being returned on some endpoints.

$ http :/pulp/api/v3/repositories/rpm/rpm/ name=hello ok=world
{
    "ok": [
        "Unexpected field"
    ]
}
$ http :/pulp/api/v3/repositories/rpm/rpm/57faa011-c78f-476f-9283-848425b2118f/sync/ remote=/pulp/api/v3/remotes/rpm/rpm/5e25532f-5d72-4929
-92ad-732e6e37d895/ hello=world                                                                                                                                                                                                                                                                                                                             
{                                                                                                                                                                                   
    "task": "/pulp/api/v3/tasks/5382171f-a9d1-47d1-ac16-6843f4b53c4d/"                                                                                                              
}                                                                             
Actions #1

Updated by fao89 about 2 years ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 78
Actions #2

Updated by rchan about 2 years ago

  • Sprint changed from Sprint 78 to Sprint 79
Actions #3

Updated by lmjachky about 2 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to lmjachky
Actions #4

Updated by pulpbot about 2 years ago

  • Status changed from ASSIGNED to POST

Added by Lubos Mjachky about 2 years ago

Revision e283bc84

Validate unknown fields

All serializers which inherit from the base DRF serializer and are used in a ViewSet should now validate unknown query parameters.

closes #7245

Actions #5

Updated by Anonymous about 2 years ago

  • Status changed from POST to MODIFIED
Actions #6

Updated by bmbouter about 2 years ago

  • Sprint/Milestone set to 3.7.0
Actions #7

Updated by pulpbot about 2 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF