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

2179 jar chokes empty lines #2254

Merged
merged 2 commits into from Oct 24, 2023
Merged

2179 jar chokes empty lines #2254

merged 2 commits into from Oct 24, 2023

Conversation

spiffcs
Copy link
Contributor

@spiffcs spiffcs commented Oct 24, 2023

Update Java Manifest Parser

This PR removes the strings.TrimSpace call which was abruptly ending a manifest parse when a continuation was expected.

This PR adds a test to make sure the continuations are included in the previous fields while still allowing the parser to move forward and catalog the entire document.

Warning levels for this function have been reduced to debug in response to the dev note from #2179

Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
@spiffcs spiffcs linked an issue Oct 24, 2023 that may be closed by this pull request
@spiffcs spiffcs merged commit cd53092 into main Oct 24, 2023
10 checks passed
@spiffcs spiffcs deleted the 2179-jar-chokes-empty-lines branch October 24, 2023 18:03
@spiffcs spiffcs added the bug Something isn't working label Oct 31, 2023
GijsCalis pushed a commit to GijsCalis/syft that referenced this pull request Feb 19, 2024
---------

Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Jar parser chokes on empty lines
2 participants