Issue 54558 - Impossible to save writer or calc document after pasting special chart object from draw
Summary: Impossible to save writer or calc document after pasting special chart object...
Status: CLOSED DUPLICATE of issue 52830
Alias: None
Product: General
Classification: Code
Component: ui (show other issues)
Version: OOO 2.0 Beta2
Hardware: PC All
: P3 Trivial (vote)
Target Milestone: OOo 2.0.1
Assignee: wolframgarten
QA Contact: issues@framework
URL:
Keywords: oooqa
Depends on: 52830
Blocks:
  Show dependency tree
 
Reported: 2005-09-13 17:00 UTC by scagni
Modified: 2005-09-19 16:09 UTC (History)
2 users (show)

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


Attachments
File containing the object that blocks saving ability of writer docs when pasted in them (34.47 KB, application/vnd.sun.xml.draw)
2005-09-13 17:01 UTC, scagni
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description scagni 2005-09-13 17:00:32 UTC
IN OO1.9.122 created 6 charts in calc, pasted them in a draw file and grouped
them togheter. Then I copied the grouped object and pasted it in a writer document. 
From then on the writer document cannot be saved anymore, any attempt to do so
will result in an "i/o error" message. Even if  you delete the pasted object,
the writer doc remains impossible to save.
A workaround is to choose paste special and select "metafile GDI" as format;
however you will not be able to edit the object in the orginal format after that.
The pasted object is in included in an attached file "object to copy and
paste.sxd". Just open it select and copy the only (grouped) object present, and
then try to paste it in any writer doc. 
This happens saving both in OO1 and OO2 file formats.
Comment 1 scagni 2005-09-13 17:01:34 UTC
Created attachment 29533 [details]
File containing the object that blocks saving ability of writer docs when pasted in them
Comment 2 Rainer Bielefeld 2005-09-13 18:28:57 UTC
I checked with 2.0 (1.9.m122) German version WIN 98: [680m122(Build8941)], 
2.0 (1.9.m118) English version WIN XP: [680m118(Build8936)],
2.0 (1.9.m113) German version WIN XP: [680m113(Build8930)]
All same result: I can reproduce the problem, when I try to save the document
with the pasted object I get: "Error Saving the document Untitled2: Write error!
Error writing file"

It's not a special writer problem, the same happens when I paste the grouped
object to a CALC file.
Paste works into Impress and Draw documents.

So I believe, framework might be a better component.

Something I did not understand: After I ungrouped the document an copied /
pasted it as reported, I was able to ungroup it in the writer document ?!

@ scagni:
pls specify your OS!
Comment 3 Rainer Bielefeld 2005-09-13 18:40:24 UTC
It's nothing special with reporter's charts. I tried with
'ooo.stock.scaling.bug2.sxc' from issue 15298:

0. Opened 'ooo.stock.scaling.bug2.sxc' with  2.0 (1.9.m122) 
   German version WIN XP: [680m122(Build8941)]
1. saved as .ods
2. opened new draw document
3. copied / pasted charts of 'ooo.stock.scaling.bug2.sxc' 
   one by one to new draw document
5. arranged charts and groped them
7. saved draw document
8. <cntrl>+<a> to mark grouped document
9. Context-Menu "Copy"
10. Open new writer document
11. paste
12. Try to save document
    expected: can "save as"
    actual: error message as reported.
Comment 4 Rainer Bielefeld 2005-09-13 18:48:48 UTC
To reproduce the problem, it is not necessary to have the charts grouped in
DRAW. The problem will also appear if you copy paste only 2 of the ungrouped
charts from 'ooo.stock.scaling.bug2.sxc'. After they are pasted to the writer
(or calc) document, they will be grouped there - whatever that might mean :-/
Comment 5 Rainer Bielefeld 2005-09-13 18:50:34 UTC
My suspect sees a relation to issue 52830 (may even be it's a DUP)

correct?
Comment 6 Rainer Bielefeld 2005-09-13 18:52:52 UTC
more meaningful subject
Comment 7 scagni 2005-09-14 10:24:38 UTC
My OS is win XP FP1.
Also I don't want to complicate things, but while juggling with the problem,
another one arised on the same object:
In all I had 11 calc graphs pasted into a Draw doc and grouped in 2 clusters.
Here there were no problems in saving, but some of the graphs (seemingly at
random) turned up not to be the correct ones after closing the saved doc and
reopening it: 4 of them had disappeared and were replaced by duplicates of
others present in the doc. I had to repaste the missing ones again from calc,
for one of them I even had to do this twice to set things straight (at the first
try in one case the newly pasted graph was again replaced by the copy of another). 
Until you save close and reopen the doc the thing can't be seen directly, but if
you copy and paste the graphs in other docs (in any format like metafile GDI
which overcomes the saving problem) the pasted copy is already wrong!
This is a very dangerous bug, with no alert visible you risk to overlook the
problem until somebody else makes you notice it when it's too late (in my case,
during a presentation at a scientific meeting).
I was lucky enough to spot it early... it's something probably having to do with
internal identifiers of objects in the file....
Comment 8 Rainer Bielefeld 2005-09-14 10:52:41 UTC
Hi scagni,

this issue is tricky enoug, please open a new issue for your observations as per
"comments from scagni Wed Sep 14 02:24:38 -0700 2005"
Comment 9 wolframgarten 2005-09-19 11:18:21 UTC
I'll have a look.
Comment 10 wolframgarten 2005-09-19 13:17:53 UTC
Duplicate. This is fixed in impress58 with i52830.

*** This issue has been marked as a duplicate of 52830 ***
Comment 11 wolframgarten 2005-09-19 13:18:31 UTC
Closed.