ffang commented on PR #3794: URL: https://github.com/apache/cxf/pull/3794#issuecomment-7221752480
Thanks @coheigea. With new commit, `nested` looks good. One problem with `war` though: unlike `nested`, Tomcat's `war:` wraps another URL (`war:file:/app.war*/…` is rewritten to `jar:file:/app.war!/…`), so it needs to be in `ARCHIVE_URL_SCHEMES` as well, not only in the allowed schemes. As it is, `war:ftp://host/x.war*/a.xsd` and `jar:war:ftp://host/x.war*/WEB-INF/lib/x.jar!/a.xsd` pass `checkAllowedScheme` and `isLocalReference`. I checked this with Tomcat 9.0.124's handler registered: both open an FTP connection. On main, `war:ftp://…` was rejected. Adding `"war"` to `ARCHIVE_URL_SCHEMES` fixes both, and `jar:war:file:…` keeps working. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
