Apache OpenOffice (AOO) Bugzilla – Issue 59743
Opening a certain file with an odd filename corrupts .recently-used
Last modified: 2006-03-16 10:21:40 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.
cannot reproduce with OOo 2.0.1 on Windows XP Pro SP2. How do you create and open the file (File->Open etc.)?
I opened it from nautilus, which I believe is responsible for writing the first RecentItem entry.
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?
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)...
Framework issue.
Fixed in 2.0.2 https://launchpad.net/distros/ubuntu/+source/openoffice.org2-amd64/+bug/24327
ok in OOo 2.0.2
wfm