Skip to content

Fix 400 return code on SAF errors #3950

Open
@richard-salac

Description

@richard-salac

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: MediumV3New functions slated for V3 major releasebugVerified defect in functionalitysize/S

    Type

    No type

    Projects

    Status

    Unplanned Bugs

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions