Project

Profile

Help

Issue #7245

Unexpected param error not being returned

Added by daviddavis 3 months ago. Updated about 1 month 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/"                                                                                                              
}                                                                             

Associated revisions

Revision e283bc84 View on GitHub
Added by Lubos Mjachky 2 months ago

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

History

#1 Updated by fao89 3 months ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 78

#2 Updated by rchan 3 months ago

  • Sprint changed from Sprint 78 to Sprint 79

#3 Updated by lmjachky 2 months ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to lmjachky

#4 Updated by pulpbot 2 months ago

  • Status changed from ASSIGNED to POST

#5 Updated by Anonymous 2 months ago

  • Status changed from POST to MODIFIED

#6 Updated by bmbouter about 1 month ago

  • Sprint/Milestone set to 3.7.0

#7 Updated by pulpbot about 1 month ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF