KB Article #181353

Fix UI edit rule related to APIManager 7.5.3-SP13 Patch20540

Problem

  • Issue with APIManager 7.5.3-SP13 Patch20540 to allow API Manager hostnames containing underscore.
  • Even after applying the patch, the UI edit rule prevents adding an underscore "_" to backend service URL hostname.
  • UI error message: "THE URL SHOULD START WITH HTTP:// OR HTTPS:// FOLLOWED BY A VALID HOST AND PORT, THE PATH SHOULD BE VALID AND NOT END IN A SLASH"
  • key words: RDAPI-21371, RDAPI-21374


Resolution

This KB applies Only to the case where you have applied Patch20540 to an API Gateway 7.5.3 SP13 system.

The patch contains a fix to allow underscore containing hostnames to be accepted by the code at runtime, but does not contain the expanded Regex for the UI edit rule. Solution:

On each API Manager instance, please backup then edit apigateway/webapps/apiportal/vordel/apiportal/app/app.config

Find urlValidationHttp, and add a "_" to the first section matching: '[a-zA-Z0-9.-]'
Making it look like: '[a-zA-Z0-9_.-]' (note the added underscore in the 3rd to last position in that grouping)
This will allow the UI edit rule to pass with an _ in an outbound backend service URL hostname.