Bug 422997

Summary: Filenames containing newlines cause renaming to discard entire filename
Product: [Applications] dolphin Reporter: catlover2 <invertedrat>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: minor CC: fanzhuyifan, invertedrat, kfm-devel
Priority: NOR    
Version: 20.04.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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 ***