Skip to content

Fix 500 error when fetching maven package with malformed POM#838

Open
Mahaboobunnisa123 wants to merge 1 commit intoaboutcode-org:mainfrom
Mahaboobunnisa123:fix/issue-197-maven-version-range
Open

Fix 500 error when fetching maven package with malformed POM#838
Mahaboobunnisa123 wants to merge 1 commit intoaboutcode-org:mainfrom
Mahaboobunnisa123:fix/issue-197-maven-version-range

Conversation

@Mahaboobunnisa123
Copy link

Fixes #197
The 500 error was caused by unhandled exceptions during POM parsing when the POM contains a malformed version range.

Changes made
Added error handling so the error is logged gracefully instead of crashing.

Tests:
Added 1 new test file with 2 test cases that verify malformed POMs are handled gracefully without crashing.

Signed-off-by: Mahaboobunnisa123 <mdshabbi885@gmail.com>
@Mahaboobunnisa123 Mahaboobunnisa123 force-pushed the fix/issue-197-maven-version-range branch from 7c1afbf to d7d694f Compare March 9, 2026 15:10
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

Successfully merging this pull request may close these issues.

500 error calling api/packages/get_or_fetch_package/?purl=pkg:maven/commons-codec/commons-codec@1.16.0

1 participant