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

Draft: Validate filename length for uploads to DAM or FileUploads #2955

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

thomasdax98
Copy link
Member

depends on #2952

Description

Validate filename length for uploads to DAM or FileUploads. The filename can't exceed 255 characters.

Acceptance criteria

Screenshots/screencasts

Bildschirmfoto 2024-12-18 um 16 03 40

Further information


Validate filename length for uploads to DAM or FileUploads

The filename can't exceed 255 characters.
Copy link
Member Author

@thomasdax98 thomasdax98 Dec 18, 2024

Choose a reason for hiding this comment

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

255 was chosen because it's also the max length on MacOS and Windows. So a filename longer than 255 characters was probably manipulated for malicious reasons.

@thomasdax98 thomasdax98 changed the title Draft: DAM file max name length Draft: Validate filename length for uploads to DAM or FileUploads Dec 18, 2024
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)
38.7% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

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.

1 participant