Bug 510716 - Files with Carriage Returns in the name overlap the next item in the list view
Summary: Files with Carriage Returns in the name overlap the next item in the list view
Status: REOPENED
Alias: None
Product: dolphin
Classification: Applications
Component: view-engine: general (other bugs)
Version First Reported In: git-master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-17 09:37 UTC by BarryBanana
Modified: 2025-11-28 11:07 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
example of pdf files with carriage return causing overlapping (31.79 KB, image/png)
2025-10-17 09:37 UTC, BarryBanana
Details
Don't reproduce exactly (56.42 KB, image/png)
2025-10-22 15:18 UTC, Méven
Details
text fle with file name with new lines causing overlapping (5 bytes, text/plain)
2025-10-23 07:53 UTC, BarryBanana
Details
zip with text file with bad name (245 bytes, application/zip)
2025-10-23 07:58 UTC, BarryBanana
Details

Note You need to log in before you can comment on or make changes to this bug.
Description BarryBanana 2025-10-17 09:37:50 UTC
Created attachment 185856 [details]
example of pdf files with carriage return causing overlapping

SUMMARY
files with carriage returns in name overlap the next item in the list


STEPS TO REPRODUCE
1. recieve from third party a file with carriage returns in the name
2. open dolphin
3. switch to any list view

OBSERVED RESULT
the carriage returns cause the text to overlap the next item in the list

EXPECTED RESULT
the carriage returns are escaped into a single line which is then truncated 

SOFTWARE/OS VERSIONS
Dolphin: 25.11.70
KDE Frameworks: 6.19.0
Qt: Using 6.9.2 and built against 6.9.2
Fedora Linux 42 (KDE Plasma Desktop Edition) (Wayland)
Build ABI: x86_64-little_endian-lp64
Kernel: linux 6.16.11-200.fc42.x86_64
Comment 1 Méven 2025-10-22 15:18:12 UTC
Created attachment 186010 [details]
Don't reproduce exactly

Can you give more precisions, like the exact filename of the file causing the issue.
Comment 2 Méven 2025-10-22 15:20:35 UTC
Need details regarding issue.

Exact example of a filename concerned, in quotes like:
"my-filename
with several
lines.pdf"

With its content if possible.
Comment 3 BarryBanana 2025-10-23 07:53:23 UTC
Created attachment 186031 [details]
text fle with file name with new lines causing overlapping

I've copied and pasted the file name from the PDF, as the PDF is too big to upload.

It displayed the same way as the original file when I created it, but now I look at it again, both are displaying "correctly", as in all the text is in one line.

Though I noticed another behaviour, that is the file name is on multiple lines, but instead of showing through onto the next item in the list ( the next item being transparent background ),  the next item in the list is drawn over the top, occluding the multiline item.
Comment 4 BarryBanana 2025-10-23 07:58:16 UTC
Created attachment 186032 [details]
zip with text file with bad name

I noticed the upload / download process sanitised the file name so I've put it in a zip file.
Comment 5 Bug Janitor Service 2025-11-07 03:48:27 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2025-11-22 03:46:43 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.