Skip to content
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

generateLicenseReport tries to read directory as zip file and fails with UndeclaredThrowableException #312

Open
Vampire opened this issue Jun 2, 2024 · 0 comments

Comments

@Vampire
Copy link
Contributor

Vampire commented Jun 2, 2024

In my dependencies is a directory called like foo.zip.

Actually, it is coming from an artifact transform that unpacks a zip file into a directory called like the zip file, but that is not important for the issue.

The license report generator then tries to read that directory in com.github.jk1.license.reader.PomReader#findAndSlurpPom as zip file as it just sees the entry ends in .zip but does not check whether it is a file or directory.

This then fails with a FileNotFoundException which ends up in an UndeclaredThrowableException.

There should probably better be special handling for the case the entry is a directory and then traverse through the directory searching for the pom file instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant