Issue 59743 - Opening a certain file with an odd filename corrupts .recently-used
Summary: Opening a certain file with an odd filename corrupts .recently-used
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: General
Classification: Code
Component: ui (show other issues)
Version: OOO 2.0 Beta2
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: thorsten.martens
QA Contact: issues@framework
URL:
Keywords: needmoreinfo, oooqa
Depends on:
Blocks:
 
Reported: 2005-12-24 18:24 UTC by jdevuyst
Modified: 2006-03-16 10:21 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description jdevuyst 2005-12-24 18:24:15 UTC
I have a file named "18. Versuche an Patienten müssen sich auf eigenes Leiden
beziehen & 19. Schlußbemerkung.odt" which, when I open it in OOo, corrupts
~/.recently-used. This also happens when I create a new OOo document and give it
the same filename.

The first thing that happens when I open this file is that the Locations/Recent
Documents menu becomes disabled. Opening .recently-used in a text editors shows
that the old entries are still present though.

Next, opening a different document after the Recent Document was disabled will
overwrite .recently-used.

Thinking further, opening the problematic file twice could be interesting as it
would logically show only the information about said file.

I did this and while OOo is launching I get this result:

<?xml version="1.0"?>
<RecentFiles>
  <RecentItem>
   
<URI>file:///home/jdv/Desktop/18.%20Versuche%20an%20Patienten%20m%FCssen%20sich%20auf%20eigenes%20Leiden%20beziehen%20%26%2019.%20Schlu%DFbemerkung.odt</URI>
    <Mime-Type>application/vnd.oasis.opendocument.text</Mime-Type>
    <Timestamp>1135448212</Timestamp>
    <Groups>
    </Groups>
  </RecentItem>

Waiting a bit until OOo is done loading and .recently-used shows this:

<?xml version="1.0"?>
<RecentFiles>
<RecentItem>
<URI>file:///home/jdv/Desktop/18.%20Versuche%20an%20Patienten%20m%FCssen%20sich%20auf%20eigenes%20Leiden%20beziehen%20&%2019.%20Schlu%DFbemerkung.odt</URI>
<Mime-Type>application/vnd.oasis.opendocument.text</Mime-Type>
<Timestamp>1135448224</Timestamp>
<Groups>
<Group>openoffice.org</Group>
<Group>staroffice</Group>
<Group>starsuite</Group>
</Groups>
</RecentItem>
<RecentItem>
<URI>file:///home/jdv/Desktop/18.%20Versuche%20an%20Patienten%20m%FCssen%20sich%20auf%20eigenes%20Leiden%20beziehen%20%26%2019.%20Schlu%DFbemerkung.odt</URI>
<Mime-Type>application/vnd.oasis.opendocument.text</Mime-Type>
<Timestamp>1135448212</Timestamp>
</RecentItem>
</RecentFiles>

Observe that unlike what should normally happen, there are _two_ RecentItem entries.

My guess is that due some encoding mismatch (the filename is UTF-8, my $LANG is
set to nl_BE) OpenOffice doesn't find the file it's opening in there, and it
ends up writing a new RecentItem entry. Of course, though, I'm not an OOo hacker.
Comment 1 lars 2005-12-31 19:34:01 UTC
cannot reproduce with OOo 2.0.1 on Windows XP Pro SP2. How do you create and 
open the file (File->Open etc.)?
Comment 2 jdevuyst 2005-12-31 20:43:02 UTC
I opened it from nautilus, which I believe is responsible for writing the first
RecentItem entry.
Comment 3 lars 2005-12-31 21:40:33 UTC
what is nautilus? Does this erroneous behaviour also occur when you open the 
file in a different manner? Do you use OOo 2.0.1 ? Could you try with it?
Comment 4 jdevuyst 2005-12-31 22:20:29 UTC
Unfortunately I can't install OOo 2.0.1 right now as openoffice.org
(understandably) doesn't provide packages for Ubuntu Linux (Badgy Breezer). I am
using OpenWriter 1.9.129.

Nautilus is the file manager for GNOME, a Linux Desktop Environment.

When I open the file in OOo using File/Open only one RecentItem entry gets
written to ~/.recently-used:

<RecentItem>
<URI>file:///home/jdv/Desktop/Vertalingen%20van%20Im%20Dienste%20des%20medizinischen%20Fortschritts%20(Hans%20Jonas)/18.%20Versuche%20an%20Patienten%20m%C3%BCssen%20sich%20auf%20eigenes%20Leiden%20beziehen%20&%2019.%20Schlu%C3%9Fbemerkung.odt</URI>
<Mime-Type>application/octet-stream</Mime-Type>
<Timestamp>1136067190</Timestamp>
<Groups>
<Group>openoffice.org</Group>
<Group>staroffice</Group>
<Group>starsuite</Group>
</Groups>
</RecentItem>

Contrary to what I had expected, though, this also disables the Locations/Recent
Documents menu. This falsifies my previous hypothesis that this menu was
disabled because two RecentItems were written for the same file. So perhaps this
is a GNOME bug.

I'll think about this and may file a bug about this on bugzilla.gnome.org
tomorrow (in which case I'll update this bug accordingly)... 
Comment 5 michael.ruess 2006-01-03 11:01:16 UTC
Framework issue.
Comment 7 Olaf Felka 2006-03-16 10:20:40 UTC
ok in OOo 2.0.2
Comment 8 Olaf Felka 2006-03-16 10:21:40 UTC
wfm