undertow/src/main/java/org/wildfly/extension/undertow/security/jacc/JACCAuthorizationManager.java
private String getCanonicalURI(HttpServletRequest request) {
        String canonicalURI = request.getRequestURI().substring(request.getContextPath().length());
        if (canonicalURI == null || canonicalURI.equals("/"))
            canonicalURI = "";
        return canonicalURI;
    }
private String getCanonicalURI(HttpServletRequest request) {
        String canonicalURI = request.getRequestURI().substring(request.getContextPath().length());
        if (canonicalURI == null || canonicalURI.equals("/"))
            canonicalURI = "";
        return canonicalURI;
    }
<p>
Gets the canonical request URI - that is, the request URI minus the context path.
</p>

@param request the {@link HttpServletRequest} for which we want the canonical URI.
@return the constructed canonical URI.