[upstream] Draw opens 'Recent Documents' .odg document in Impress

Bug #272975 reported by Steve McInerney
4
Affects Status Importance Assigned to Milestone
OpenOffice
Confirmed
Unknown
openoffice.org (Ubuntu)
Won't Fix
Low
Unassigned

Bug Description

Binary package hint: openoffice.org

Was originally an Impress document (.odp). Saved and edited in multiple sessions as an .odg.

If "Open" - opens in Draw.
If same document is opened via Recent Documents, opens in Impress.

Description: Ubuntu 8.04.1
Release: 8.04
openoffice.org-draw: 1:2.4.1-1ubuntu2

Would expect the .odg to always open in Draw.

Revision history for this message
Steve McInerney (spm) wrote :

Is still broken in intrepid.

Description: Ubuntu intrepid (development branch)
Release: 8.10

openoffice.org-draw 1:2.4.1-9ubuntu2

Revision history for this message
Chris Cheney (ccheney) wrote :

Can you attach the document that exhibits the problem?

Thanks,

Chris Cheney

Changed in openoffice.org:
status: New → Incomplete
Revision history for this message
Steve McInerney (spm) wrote :
  • test1.odg Edit (9.2 KiB, application/vnd.oasis.opendocument.graphics)

Hi Chris,

Given that said document is the server/network layout for launchpad? probably not. :-)

However, was able to easily duplicate. And have attached that diagram.

Process was:
Create New Impress document. (.odp)
 * Add a few slides, with diagrams on them.
Save the Document as an OOo Drawing (.odg)
 * Open document in OOoD.
 Modify some stuff, save, exit.

Re-Open OOoD
 * Try and re-open the edited document via 'Recent Documents'
   Opens in OOo Impress every time.

Thinking that could be a bug in Recent Documents:
~/.recently-used has:

<?xml version="1.0"?>
<RecentFiles>
<RecentItem>
<URI>file:///home/steve/Documents/test1.odg</URI>
<Mime-Type>application/vnd.oasis.opendocument.graphics</Mime-Type>
<Timestamp>1223943694</Timestamp>
<Groups>
<Group>openoffice.org</Group>
<Group>staroffice</Group>
<Group>starsuite</Group>
</Groups>
</RecentItem>
<RecentItem>
<URI>file:///home/steve/Documents/test1.odp</URI>
<Mime-Type>application/vnd.oasis.opendocument.presentation</Mime-Type>
<Timestamp>1223943672</Timestamp>
<Groups>
<Group>openoffice.org</Group>
<Group>staroffice</Group>
<Group>starsuite</Group>
</Groups>
</RecentItem>

Revision history for this message
Chris Cheney (ccheney) wrote :

After downloading the file I can't get it to open in Impress.

If I do the following:
1. open from Places->Recent Documents
2. open from OOoDraw File->Recent Documents
3. open from Nautilus

It always opens in OOoDraw.

If you clear out your Recent Documents list in both Gnome and OpenOffice.org does it continue to try to open it in Impress?

Revision history for this message
Steve McInerney (spm) wrote :

Interesting. Ok, cleared Gnome Recent Docs, and OO Recent Docs (by removing the file ~/.openoffice.org2/user/registry/data/org/openoffice/Office/Common.xcu).
Opened the file in Draw. Closed. Open file via Recent Documents and worked fine - ie opened correctly in Draw.

Tried the above process again to generate test1 (Impress, Save As, etc). Was able to reduplicate the original fault.

So I guess what we're seeing, is not so much the document itself at fault, but the recent doc's links in some way shape or form?

Revision history for this message
Chris Cheney (ccheney) wrote :

I created a simple slide and saved it as ODG format then closed it and opened it again and it opened in Draw for me.

Did you mistakenly associate the mimetype application/vnd.oasis.opendocument.graphics with OpenOffice.org Impress at some point? If you right click on the file and select properties and then 'open with' what does it list to open the file with?

For my test file it only shows:
Archive Manager
Archive Mounter
OpenOffice.org Drawing

With it defaulting to OpenOffice.org Drawing.

Thanks,

Chris Cheney

Revision history for this message
Chris Cheney (ccheney) wrote :

Also if you have accidentally associated the file incorrectly at some point in the past there is probably a file called:

~/.local/share/applications/mimeapps.list

That would have something like this in the file:

[Added Associations]
application/vnd.oasis.opendocument.graphics=ooo-draw.desktop;file-roller.desktop;mount-archive.desktop;ooo-impress.desktop;

Revision history for this message
Chris Cheney (ccheney) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in openoffice.org:
status: Incomplete → Invalid
Revision history for this message
Steve McInerney (spm) wrote :

Chris, your test is not duplicating the process to achieve the fault.

Startup Impress: Create an ODP. Save it as an ODP. Exit out of Impress.

Re Open the ODP in Impress - obviously.
Save it as an OD_G_. Exit Impress.

This is to simulate a series of changes/events that would normally occur (and did) over several days to weeks.

Open OO Draw.
Via the Recent Documents in OO Draw, open the just saved ODG.
It will open in Impress. Not Draw.

If you open the ODG via the Open dialog, it will open correctly in OO Draw. Via Recent Documents, it will not.

I have tried this and happily duplicated on 3 separate systems. Including one fresh install.

There are no invalid associations. There are no OOo style added associations at all.

Changed in openoffice.org:
status: Invalid → New
Revision history for this message
Chris Cheney (ccheney) wrote :

Cool, following your directions I can reproduce the problem now.

Thanks!

Changed in openoffice.org:
importance: Undecided → Low
status: New → Triaged
Changed in openoffice:
status: Unknown → Confirmed
Chris Cheney (ccheney)
tags: added: hardy
Changed in openoffice.org (Ubuntu):
status: Triaged → Won't Fix
Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote : migrating packaging from OpenOffice.org to Libreoffice

[This is an automated message.]
There are no new official OpenOffice.org releases in Ubuntu packaging anymore => Won't Fix

If the problem persists, please mark this bug as "also affects project Libreoffice" or "also affects distribution Libreoffice (Ubuntu)" if that has not happened already.

Please leave references to upstream OpenOffice.org bugs in place to allow cross pollination.

Revision history for this message
bruce_waters (bruce-waters) wrote :

This may be relevant. I have some .odg documents that open in LO Impress no matter what I do, and they should open in LO Draw. Possibly OO has the same problem. Here's a workaround.

The problem of a Draw document opening in Impress rather than Draw is due, at least partly, to the internally stored mimetype value ending with the substring .presentation rather than what it should be, .graphics
 You can get access to this by opening the .odg document in 7-Zip as an archive, you’ll see mimetype listed, right click it and from the context menu chose Edit. Manually change the substring presentation to graphics and click the window close button. You’ll be asked if you want to update the archive, click OK. Then open LO Draw (from the standard LO interface or do File > Open in an existing opened LO Draw document, navigate to the modified Draw document and open it (don’t try double-clicking or right click to choose to open using Draw – these won’t work as the document is still in a compromised state). Draw will show you a dialog box saying the document is corrupt and offering Repair as an option. Take it – you’ll get an Untitled version of the repaired document, do Save As… and supply a new name, and you are done. Thereafter, it will open, as expected, in LO Draw.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.