Bug 424702

Summary: KDialog does not parse double quotes in filenames correctly
Product: [Applications] kdialog Reporter: chshu
Component: generalAssignee: Brad Hards <bradh>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bugseforuns, chshu
Priority: NOR    
Version: 20.04   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: The Error and the input filename

Description chshu 2020-07-27 07:51:47 UTC
Created attachment 130425 [details]
The Error and the input filename

SUMMARY

For files with two doublequotes in filename, KDialog will only read in filename between the doublequotes.

STEPS TO REPRODUCE
1. Use KDialog to choose file (e.g. with Chromium or with Okular)
2. Select file with two doublequotes in filename (e.g. yechs_"test".txt)

OBSERVED RESULT
KDialog gives error The file "[current_path]/test" could not be found
(This is shown in the attached screenshot)

In the case that a file with name "test" exists, that file will be uploaded instead. 

EXPECTED RESULT
The full filename yechs_"test".txt being read in and the correct file be uploaded


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux with kernel 5.7.10-arch1-1
KDE Plasma Version: 5.19.3
KDE Frameworks Version: 5.72.0
Qt Version: 5.15.0

ADDITIONAL INFORMATION
Comment 1 Patrick Silva 2020-07-27 13:20:30 UTC

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