Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 400 return code on SAF errors #3950

Open
richard-salac opened this issue Jan 16, 2025 · 0 comments
Open

Fix 400 return code on SAF errors #3950

richard-salac opened this issue Jan 16, 2025 · 0 comments
Labels
bug Verified defect in functionality new New issue that has not been worked on yet

Comments

@richard-salac
Copy link
Contributor

richard-salac commented Jan 16, 2025

Describe the bug
This is a complementary issue to #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.

ERR_8_16_28(8, 16, 28, HttpStatus.SC_BAD_REQUEST, "Unable to generate PassTicket. Verify that the secured signon (PassTicket) function and application ID is configured properly by referring to Using PassTickets in z/OS Security Server RACF Security Administrator's Guide."),

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 richard-salac added bug Verified defect in functionality new New issue that has not been worked on yet labels Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Verified defect in functionality new New issue that has not been worked on yet
Projects
Development

No branches or pull requests

1 participant