Bug 329258

Summary: "save as" of a file with a name containing a " (double quote) character saves under truncated name
Product: [Unmaintained] kfile Reporter: realnobody <kdespam34fb987>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED DUPLICATE    
Severity: minor CC: nate
Priority: NOR    
Version: 4.12.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: test case file

Description realnobody 2013-12-26 22:44:20 UTC
"save as" of a file with a name containing a " (double quote) character saves under truncated name

Reproducible: Always

Steps to Reproduce:
1. have a file test"ooo"bar.txt (see test case file)
2. open in kwrite (4.12.0 and KDE base same version)
3. file → save as → ok
Actual Results:  
saved into a new file named ooo.

Expected Results:  
file gets  saved under the old file name (as shown in the dialog window)

Same happens for saving in the KDE program okular (when a file name is asked for).
A simple "save" works as expected.

Impact: could lead to data loss if it is not noticed that the desired and old name was not used for the saved (possibly altered) data.
Comment 1 realnobody 2013-12-26 22:45:51 UTC
Created attachment 84285 [details]
test case file
Comment 2 realnobody 2013-12-26 22:47:46 UTC
Maybe it is related to bug 185433 (see comment 7 there), but that bug is about opening multiple files.
Comment 3 realnobody 2013-12-26 22:49:21 UTC
forget this useless attachment (no file name)
Comment 4 realnobody 2013-12-26 23:05:40 UTC
same happens for kwrite/KDE 4.11.4 (also ArchLinux)
Comment 5 Nate Graham 2018-04-10 21:57:58 UTC

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