Skip to content

Conversation

@Monal-Reddy
Copy link

This PR fixes issue #1537 where non-extension identifiers were stored in CodebaseResource.extension, causing database failures due to the field's 100-character limit.
The root cause was that values such as Java-generated class names, SBOM qualifiers, and encoded URLs were incorrectly treated as file extensions during resource ingestion.
This change normalizes the extension value by recomputing it from the resource name and ignoring non-extension values, preventing oversized data from being stored and avoiding 'bulk_create' failures.
Fixes #1537

@Monal-Reddy Monal-Reddy force-pushed the fix-codebase-resource-extension branch from a432c24 to 4214187 Compare January 27, 2026 13:54
Signed-off-by: Monal-Reddy <monalreddy001@gmail.com>
@Monal-Reddy Monal-Reddy force-pushed the fix-codebase-resource-extension branch from 4214187 to 20adf35 Compare January 27, 2026 14:04
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.

BUG: value too long for type character varying(100)

1 participant