api-layer icon indicating copy to clipboard operation
api-layer copied to clipboard

Fix 400 return code on SAF errors

Open richard-salac opened this issue 1 year ago • 0 comments

Describe the bug This is a complementary issue to https://github.com/zowe/api-layer/issues/3007

There is the mapping between SAF errors and http return codes with one specific handling for error 8/16/28 mapped to 400. It is the only one SAF error with distinguished return code with seemingly no specific reason. I suggest to unify the error mapping to 500.

https://github.com/zowe/api-layer/blob/32793d87d6c10d15ff8a8ef1fb5213b91ec87bee/common-service-core/src/main/java/org/zowe/apiml/passticket/AbstractIRRPassTicketException.java#L65

Expected behavior Return 500 as for the other SAF error messages as 400 should indicate malformed request rather than permissions issue

Details

  • Version and build number: v3, v2

richard-salac avatar Jan 16 '25 16:01 richard-salac