-
Notifications
You must be signed in to change notification settings - Fork 879
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
Node cannot be installed to relative path #1124
Comments
What is the use case for this? Is it not possible to achieve using |
We use a general parent pom which installs Node into the parent module's target dir as soon as the first sub-module is built which requires Node. For this the destination directory is configured using various properties which some might contain Anyway it should not have any downside to normalize both directories as comparing them only makes sense if both are compared normalized. Don't you think? |
Another point: These kind of installDirectories used to work fine in version < 1.13. So it seems like a regression concerning this feature. Currently, this blocks us from updating the plugin. |
Otherwise, relative installDirectory paths cannot be used because the zip-slip check fails with "Bad zip entry" exception even the zip is fine. Closes #1124
Do you want to request a feature or report a bug?
Report a Bug
What is the current behavior?
Using a relative path in
installDirectory
for goalinstall-node-and-npm
always leads to "Bad zip entry" exception:The reason seems to be here where a normalized
destPath
is compared against a non-normalizeddestinationDirectory
.I assume the
destinationDirectory
should be normalized as well before comparing.If the current behavior is a bug, please provide the steps to reproduce.
Execute the
install-node-and-npm
goal with a relativeinstallDirectory
for node as shown in the sample above.What is the expected behavior?
Node is correctly extracted to the normalized path of the given relative
installDirectory
.Please mention your frontend-maven-plugin and operating system version.
frontend-maven-plugin version: 1.14.2
operating system: any
The text was updated successfully, but these errors were encountered: