Bug 422997 - Filenames containing newlines cause renaming to discard entire filename
Summary: Filenames containing newlines cause renaming to discard entire filename
Status: RESOLVED DUPLICATE of bug 452587
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 20.04.2
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-15 00:56 UTC by catlover2
Modified: 2023-10-26 01:06 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description catlover2 2020-06-15 00:56:58 UTC
SUMMARY
If a filename contains newlines, trying to rename it causes the entire filename to be discarded, rather than highlighted for editing as usually happens.


STEPS TO REPRODUCE
1. Create a file with newlines in the filename and navigate to it in Dolphin
2. Right click on the file and select the "Rename" option

OBSERVED RESULT
The filename editing field contains only the file extension of the file. The original name of the file has vanished.

EXPECTED RESULT
Like with filenames that do not contain newlines, the original filename ought to be presented in the filename editing field.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Frameworks Version: 5.70.0
Qt Version: 5.15.0
Comment 1 fanzhuyifan 2023-10-26 01:06:06 UTC

*** This bug has been marked as a duplicate of bug 452587 ***