ServletContext getContextPath() does not end with forward slash. #14345
Labels
bug
This bug is not present in a released version of Open Liberty
in:Web Components
POC Approved
release bug
This bug is present in a released version of Open Liberty
release:21005
team:Sirius
Projects
Milestone
ServletContext.getContextPath() - The context path always comes first in a request URI. The path starts with a "/" character but does not end with a "/" character.
Currently getContextPath() does not check for the ending slash and includes it in the return.
Fix: check and remove the ending slash. An info will be logged when this happens. The flow continues.
Workaround: remove the configured ending / in the context root.
The text was updated successfully, but these errors were encountered: