SAP Knowledge Base Article - Preview

3799864 - ~path_info returns leading slash and preserves URL casing after upgrade to Release 2608 (IF_HTTP_SERVICE_EXTENSION)

Symptom

The pseudo-header field ~path_info returned by the following call in custom ICF handler implementations behaves differently than in previous releases:

l_path = server->request->get_header_field( i_name = '~path_info' ).

The following behavior changes are observed:

  • Prior to Release 2608: ~path_info was returned without a leading slash (/) and the value was converted to lower case
  • After Release 2608: ~path_info is returned with a leading slash (/) and the original URL casing is preserved

Custom HTTP service implementations that perform path-based routing, URL validation, or string comparisons against hardcoded path values may fail silently or reject requests that were processed successfully before the upgrade.


Read more...

Environment

  • SAP S/4HANA Cloud Public Edition 2608 or higher
  • SAP_BASIS 920 SP 0002 or higher
  • Custom classes implementing interface IF_HTTP_SERVICE_EXTENSION
  • HTTP services registered and called via the ICF framework

Product

ABAP platform all versions ; SAP NetWeaver all versions ; SAP S/4HANA all versions ; SAP Web Application Server for SAP S/4HANA all versions

Keywords

IF_HTTP_SERVICE_EXTENSION, ~path_info, leading slash, path info, HTTP service, ICF, ABAP HTTP, get_header_field, server->request, HANDLE_REQUEST, behavior change, path parsing, custom endpoint, request path , KBA , BC-MID-ICF , Internet Communication Framework , BC-MID-ICF-LGN , ICF System Login , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.