Skip to main content
Version: v3.5.x LTS

Using strict URL validation

Using strict URL validation

Role: system programmer

By default, the API Mediation Layer strictly validates request URLs and rejects requests whose path contains encoded characters such as encoded slashes (%2F), encoded double slashes, backslashes, encoded percent signs, encoded periods, or semicolons.

note

The components.gateway.apiml.service.allowEncodedSlashes property was removed in Zowe V3.5 in favor of components.gateway.apiml.security.enableStrictUrlValidation. If you previously set allowEncodedSlashes: true to permit encoded slashes, set enableStrictUrlValidation to false instead (note the inverse meaning).

If you are onboarding applications that expose endpoints which expect any of these characters (for example, encoded slashes) in the URL path, you can relax validation for routed traffic. We recommend that you keep the default strict validation unless you have applications that require these characters.

Use the following procedure to relax URL validation.

  1. Open the file zowe.yaml.
  2. Find or add the property components.gateway.apiml.security.enableStrictUrlValidation and set the value to false.
  3. Restart Zowe.

Requests routed through the Gateway that contain these characters are now accepted. Gateway-internal endpoints continue to be strictly validated regardless of this setting.