-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jetty Deploy scan / symlink behavior is broken #6114
Comments
This is strange, because the PR that eventually got merged didn't canonicalize the discovered files and only used Perhaps a canonicalization was left in somewhere? |
The scanner calls |
Two (currently disabled) test cases in 9.4.x and 10.0.x test for this.
These were added/disabled as part of Issue #1200 around commit 529dea0 We should fix this, but for jetty 10+ only? |
+ Using getAbsolutePath not canonical (too many corner cases with it to be reliable) Signed-off-by: Joakim Erdfelt <[email protected]>
Signed-off-by: Joakim Erdfelt <[email protected]>
Use Path.toRealPath rather than getCanonicalPath in the Scanner Make following symlinks configurable Signed-off-by: Greg Wilkins <[email protected]>
fix from review Signed-off-by: Greg Wilkins <[email protected]>
updates from review Signed-off-by: Greg Wilkins <[email protected]>
updates from review Signed-off-by: Greg Wilkins <[email protected]>
* Fix #6114 Deploy symlink webapps Use Path.toRealPath rather than getCanonicalPath in the Scanner Make following symlinks configurable Signed-off-by: Greg Wilkins <[email protected]>
Reopening, as the Scanner is still broken for symlink behavior. |
Can you explain why? |
There's 2 fundamental issues:
|
I'm closing this because the PR has gone into a release and I think the problems raised are about how to fail nicer if there is a bad symlink, which is a different issue. |
Jetty version
9.4.39.v20210325
Java version
Java 11
OS type/version
Linux / OSX
Description
Lets say we have a
${jetty.base}
that has 3 entries inwebapps/
, all symlinks, pointing to the same exploded webapp.When we try to deploy this setup, we see that the symlink directory names are not honored.
And it seems that it only detects 1 webapp, of the 3 desired to be deployed.
Expected results are that there are 3 webapps deployed.
/bar
/foo
/zed
The text was updated successfully, but these errors were encountered: