Project

Profile

Help

Issue #7888

Can't update Fields through Rest API We pages (PUT requests)

Added by equipe_serveurs@exane.com about 2 months ago. Updated 6 days ago.

Status:
POST
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
Master
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Using rest api on pulp (PUT Request), I current Get the following error raised

{ "detail": "CSRF Failed: CSRF token missing or incorrect." }

Investigation

  1. The root cause of this issue comes from the X-CRRFToken been checked but not sent through the Ajax Call

  2. Source of this check comes from the authentication scheme in place (SessionAuthentication) (cf settings.py) 'DEFAULT_AUTHENTICATION_CLASSES': [ 'rest_framework.authentication.SessionAuthentication', 'rest_framework.authentication.BasicAuthentication', ]

History

#1 Updated by pulpbot about 2 months ago

  • Status changed from NEW to POST

#2 Updated by fao89 about 2 months ago

  • Triaged changed from No to Yes

#3 Updated by dkliban@redhat.com 6 days ago

Does this occur when using the browsable API provided using django rest framework?

#4 Updated by equipe_serveurs@exane.com 6 days ago

Yes it is indeed the case. This case is about using the API through the web interface.

Please register to edit this issue

Also available in: Atom PDF