Bug 197618 - Some writeable simple text files are marked R/O and not editable
Summary: Some writeable simple text files are marked R/O and not editable
Status: RESOLVED DUPLICATE of bug 189207
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: reproducible
Depends on:
Blocks:
 
Reported: 2009-06-23 15:54 UTC by Fabio Papa
Modified: 2009-07-15 16:32 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Normal text file showing the problem. (20.49 KB, application/octet-stream)
2009-06-23 15:55 UTC, Fabio Papa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Papa 2009-06-23 15:54:48 UTC
Version:            (using KDE 4.2.4)
OS:                Linux
Installed from:    Ubuntu Packages

I have some files, one of which I'm attaching here, which, although perfectly R/W by the system, are marked R/O by Kate. No apparent explanation is given, both in console output or elsewhere.
Comment 1 Fabio Papa 2009-06-23 15:55:54 UTC
Created attachment 34763 [details]
Normal text file showing the problem.
Comment 2 Dario Andres 2009-06-24 16:52:46 UTC
I'm getting an encoding error while opening that file:
"The file X was opened with UTF8 encoding but contained invalid characters. It is set to read-only mode as saving may destroy the content"

You probably checked the "Do not show this message again" checkbox some time before in the same dialog and now you are not getting the proper explanation.

Marking as INVALID as this is not a bug.
Thanks
Comment 3 Fabio Papa 2009-06-25 09:13:59 UTC
Hold on a little, please. The computer on which I had this have just been installed. And not only one computer showed this, but three, 2 of which were just cleanly reinstalled from scratch. 
Playing with some other files with the same behaviour, I too have managed to trigger the message. The thing is that, sometimes, kate _silently_ enters his R/O mode without any warning. The fact that sometimes I too get the message should mean that I _never_ clicked the "Don't show this again" check, right?
Comment 4 Fabio Papa 2009-06-25 09:19:18 UTC
While fiddling with the file more, I discovered something. The message you mention only shows, for me, if I open the attached file directly from Kate. In other words, if I first open an empty Kate window, and then I open the file.
If instead I try opening the file from Dolphin, no message is displayed, so I have no clue what's going on.
Any chance you opened that file from inside an already opened Kate window? If yes, can you try opening it again from Dolphin?
Comment 5 Dario Andres 2009-06-25 14:34:32 UTC
Thanks for your discoverings. I will check opening the file without Kate later.
I'm reopening the bug report.
Comment 6 Dario Andres 2009-06-28 01:10:31 UTC
Here using:

Qt: 4.5.2 (KDE-Qt git commit 46a247a2c9a8c0c4456a02f6a0922d859d88fe76
        Date:   Fri Jun 26 13:45:37 2009 +0200)
KDE: 4.3.60 (KDE 4.3.60 (KDE 4.4 >= 20090624))
kdelibs svn rev. 987857 / kdebase svn rev. 987857
on ArchLinux i686 - Kernel 2.6.30

I can confirm that opening the testcase file using Dolphin, KWrite will not alert about the file containing invalid characters and being opened as read-only.

Thanks
Comment 7 Dario Andres 2009-07-15 16:32:34 UTC
It seems this was reported previously as bug 189207. Merging. Thanks

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