You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
After performing a whole-system search with one or more query parameters, the response bundle entries have messed up fullUrl values that contain information from the actual search string
lmsurpre
changed the title
use of originalRequestUriHeaderName for whole system search is not working properly
fullUrl of whole-system search response bundle entries improperly contain query parameters
Feb 17, 2021
1. Set originalRequestUriHeaderName to "X-FHIR-FORWARDED-URL" in our
default fhir-server-config (so that this can get tested by our default
CI without flags)
2. Added OriginalRequestRewriteServerTest to ensure this feature is
working as expected
3. Expanded SearchAllTest to include a check for the fullUrl in the
response bundle
4. Fix FHIRRestHelper.getRequestBaseUri(type) in two cases:
* for certain cases we were setting the baseUri to requestUri
* strip the `/_search` from the end of the whole-system search URL
when it was invoked via POST
Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
1. Set originalRequestUriHeaderName to "X-FHIR-FORWARDED-URL" in our
default fhir-server-config (so that this can get tested by our default
CI without flags)
2. Added OriginalRequestRewriteServerTest to ensure this feature is
working as expected
3. Expanded SearchAllTest to include a check for the fullUrl in the
response bundle
4. Fix FHIRRestHelper.getRequestBaseUri(type) in two cases:
* for certain cases we were setting the baseUri to requestUri
* strip the `/_search` from the end of the whole-system search URL
when it was invoked via POST
Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
Describe the bug
After performing a whole-system search with one or more query parameters, the response bundle entries have messed up fullUrl values that contain information from the actual search string
To Reproduce
Steps to reproduce the behavior:
https://localhost:9443/fhir-server/api/v4?_lastUpdated=ge2021-02-12T16:17:47
Same issue if you pass in a configured originalRequestUri header (either relative and absolute).
Expected behavior
the whole system search response should contain value fullUrl entries
Additional context
The text was updated successfully, but these errors were encountered: