-
Type:
Bug
-
Resolution: Fixed
-
Priority:
High
-
Component/s: Assets - Service, performance, functionality
-
4
-
Severity 3 - Minor
-
1
-
-
Warranty
Issue Summary
When customer is calling PUT api to update object which have deleted attribute in payload, then assets is returning 403 FORBIDDEN error - Sorry, you do not have permission to perform this action.
Steps to Reproduce
- Create a text type attribute in object type.
- Use API : GET/objecttype/{id}/attributes to get the attribute ID
- Delete the attribute
- Now try to update the Object PUT/object/{id} available in object type with deleted attribute ID in request body. Below error is observed.
Expected Results
Actual error message is misleading as user thinks about the permissions rather than incorrect attribute ID / BAD_REQUEST
Actual Results
{ "errorMessages": [ "Sorry, you do not have permission to perform this action." ], "errors": {} }
Short recording: https://www.loom.com/share/25c20b22138f46d9a9c5c5adeba9effc
Workaround
Remove deleted attribute from Payload.
- relates to
-
JSDCLOUD-17231 Assets API permission error when using PUT method with an invalid object attribute ID
-
- Closed
-
- has action
-
QB-2890 Loading...