Bug 339450 - In a spesial case Dolphin opens a file as if it where empty, even if properties shows content.
Summary: In a spesial case Dolphin opens a file as if it where empty, even if properti...
Status: RESOLVED FIXED
Alias: None
Product: kfile
Classification: Unmaintained
Component: kurlnavigator (other bugs)
Version First Reported In: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-27 10:54 UTC by kkoksvik
Modified: 2018-06-15 03:49 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kkoksvik 2014-09-27 10:54:58 UTC
Prerequisit : Make shure you have a textfile with content in ~/Downloads/foo/bar.txt

In your home directory, enter in the location bar in edit mode the begining of a subfolder like "Down"  for Download(do not start with /) press TAB to autocompleat. .Start typing the name of a subfolder foo" compleat with TAB and press ENTER. You will now get an error line under the locationbar telling you "Invalid protocol". The location bar has now turned to default mode. Click on the "foo" subfolder in the locationbar. The error has gone away, and the folder listing seams normal. Any files in this folder looks normal and file preferences shown that the files has content(Size). If you try to open bar.txt  you will find that the file is opened with no content.

Trying to save this file with "save" I get this error:
The document could not be saved, as it was not possible to write to /home/kjetil/src/odoo/src/odoo/README.md.
Check that you have write access to this file or that enough disk space is available.

Trying to save this file with "save as" the copleate path is offered as default. And I get the normal:
A file named "README.md" already exists. Are you sure you want to overwrite it?
When i choose YES I have overwritten my file with empty file.





Reproducible: Always

Steps to Reproduce:
1. Prerequisit : Make shure you have a textfile with content in ~/Downloads/foo/bar.txt
2.In your home directory, enter in the location bar in edit mode the begining of a subfolder like "Down"  for Download(do not start with /) press TAB to autocompleat.
3.Start typing the name of a subfolder foo" compleat with TAB and press ENTER. You will now get an error line under the locationbar telling you "Invalid protocol". The location bar has now turned to default mode. 
4.Click on the "foo" subfolder in the locationbar. The error has gone away, and the folder listing seams normal. Any files in this folder looks normal and file preferences shown that the files has content(Size).
5. open bar.txt  you will find that the file is opened with no content.


Actual Results:  
file is opened with no content.


Expected Results:  
File opened with content
Comment 1 kkoksvik 2014-09-27 11:45:36 UTC
Same in 4.14.1
Comment 2 Christoph Feck 2014-09-27 11:50:51 UTC
Cannot reproduce. Doing step 3, I get no error message.
Comment 3 Christoph Feck 2014-09-27 11:56:32 UTC
At step 2, the field must be cleared before starting to type "Down". Can reproduce now.
Comment 4 Nate Graham 2018-06-15 03:49:07 UTC
Works for me in KDE Frameworks 5.47. The "Invalid protocol" issue is Bug 319700.