Skip to content

Fix DataError when Finding_Group name exceeds 255 chars#14376

Merged
valentijnscholten merged 1 commit intoDefectDojo:bugfixfrom
valentijnscholten:fix/finding-group-name-too-long
Feb 26, 2026
Merged

Fix DataError when Finding_Group name exceeds 255 chars#14376
valentijnscholten merged 1 commit intoDefectDojo:bugfixfrom
valentijnscholten:fix/finding-group-name-too-long

Conversation

@valentijnscholten
Copy link
Copy Markdown
Member

@valentijnscholten valentijnscholten commented Feb 23, 2026

Description

Fixes #14367

Fix

Truncate finding group name to 255 characters.

Finding_Group.name is varchar(255), but auto-group names built from
long component names, file paths, or titles could exceed that limit,
causing a DataError on import. Truncate the name in get_or_create to
stay within the database column length.

Fixes DefectDojo#14367
@valentijnscholten valentijnscholten force-pushed the fix/finding-group-name-too-long branch from 32a53b7 to df8a651 Compare February 23, 2026 20:59
@valentijnscholten valentijnscholten added this to the 2.55.4 milestone Feb 23, 2026
Copy link
Copy Markdown
Contributor

@mtesauro mtesauro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@valentijnscholten valentijnscholten modified the milestones: 2.55.4, 2.56.0 Feb 24, 2026
@valentijnscholten valentijnscholten merged commit ea83218 into DefectDojo:bugfix Feb 26, 2026
148 checks passed
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.

5 participants