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
Specific webjar causes compiler error on Java 11.0.14 #1967
Comments
Looking at the jar: I don't see anything weird in there. But maybe the jar / unzip tool isn't revealing the strange stuff. I'm deploying 12.9.0 - can you try that version and see if it has the same issue? |
Thank you for taking a look. Unfortunately 12.9.0 has breaking changes from the previous version so would be less immediately helpful for us. That being said, I gave it a shot with the demo repo linked in the issue description and received a different error:
Trying the same thing in our actual project (https://github.com/seattle-uat/civiform) got a slightly different error, probably related to us using
|
I have this problem as well, in my case with node-fetch. All of the 3.0 versions have this path:
Version 2.6.7 does not. The workaround is to explicitly specify the version in dependencyManagement. I'm guessing the jar shouldn't have a path '.', but this gets introduced algorithmically.
I posted a question on this in StackOverflow; this is a known issue with java, but there doesn't seem to be a fix that would enable a malformed jar to be used. |
The bug occurs for OpenJDK 11.0.14.x but not 11.0.10.x
The bug appears when including the
"org.webjars.npm" % "azure__storage-blob" % "10.5.0"
library dependency. Including other webjars, including other webjars from azure, do not cause a compilation error.When
azure__storage-blob
is included, Java presents a compilation error messageZIP file can't be opened as a file system because an entry has a '.' or '..' element in its name
for every package name component in the project. E.g.The error message looks like it is coming from a bugfix introduced to OpenJDK here.
Here is a minimal Play project repo with instructions in the README for reproducing the bug: https://github.com/civiform/broken-webjar-repro
The text was updated successfully, but these errors were encountered: