Skip to content

Don't change HTTP error code when wrong data-partition-id throws exception

Solomon Ayalew requested to merge solxget_data-partition-id_error into master

Repro steps:

  • Supply unexpected values to the Data-Partition-Id header such as %3c%3e%22'%%3b)(%26%2b.

Expected: Error with HTTP Code 400 - Bad request

Actual: Error with HTTP Code 500 - Internal server error

Root cause: Currently an HTTP 400 from Partition service is being replaced by HTTP 500 by Entitlements service. In this PR, avoiding the replacment.

Edited by Solomon Ayalew

Merge request reports

Loading