Roundup Tracker - Issues

Issue 2551131

classification
Return accept-patch if patch body not accepted (415 code)
Type: rfe Severity: normal
Components: Web interface, API Versions:
process
Status: fixed fixed
:
: rouilj : rouilj
Priority: : Effort-Medium, rest

Created on 2021-04-26 00:51 by rouilj, last changed 2024-07-17 00:25 by rouilj.

Messages
msg7211 Author: [hidden] (rouilj) Date: 2021-04-26 00:51
Return an accept-patch header if we return a 415 error code
while processing a PATCH request.

We already return accept-patch headers when processing OPTIONS
requests for patchable resources.
  
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Patch
msg8107 Author: [hidden] (rouilj) Date: 2024-07-17 00:25
After changeset:   8094:8e310a7b5e09

A PATCH request that errors with 415 now returns the header:

  Accept-Patch: application/json, application/x-www-form-urlencoded
History
Date User Action Args
2024-07-17 00:25:20rouiljsetstatus: new -> fixed
assignee: rouilj
resolution: fixed
messages: + msg8107
components: + API
2021-05-06 19:05:36rouiljsettype: rfe
2021-04-26 00:51:37rouiljcreate