Issue 35372 - API: sfx.StandaloneDocumentInfo::com::sun::star::document::XStandaloneDocumentInfo
Summary: API: sfx.StandaloneDocumentInfo::com::sun::star::document::XStandaloneDocume...
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: chne
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-12 14:01 UTC by chne
Modified: 2013-02-24 21:09 UTC (History)
1 user (show)

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


Attachments
please copy bigdoc in /tmp folder (8.00 KB, application/octet-stream)
2004-10-12 14:05 UTC, chne
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description chne 2004-10-12 14:01:43 UTC
while executing the following macro office crashes on Solaris. Please copy the
attached bugdoc into /tmp folder.

Sub Main
cDoc = "file:///tmp/SfxStandaloneDocInfoObject.sdw"
oObj = createUnoService("com.sun.star.document.StandaloneDocumentInfo")
oObj.loadFromURL(cDoc)
End Sub
Comment 1 chne 2004-10-12 14:05:35 UTC
Created attachment 18308 [details]
please copy bigdoc in /tmp folder
Comment 2 chne 2004-10-12 14:07:25 UTC
on Linux and Windows the following exception was thrown:
com.sun.star.task.ErrorCodeIOException
Comment 3 Mathias_Bauer 2004-10-26 16:44:21 UTC
The behavior on Linux and Windows is correct, the StandaloneDocumentInfo does
not support binary formats any longer.

Of course it shouldn't crash on Solaris. This needs some investigation.
Comment 4 Mathias_Bauer 2004-10-27 17:00:35 UTC
.
Comment 5 kai.sommerfeld 2004-10-28 15:03:00 UTC
.
Comment 6 kai.sommerfeld 2004-10-28 15:03:34 UTC
duplicate.

*** This issue has been marked as a duplicate of 33960 ***
Comment 7 kai.sommerfeld 2004-10-28 15:04:38 UTC
.
Comment 8 chne 2004-11-10 16:53:31 UTC
n->kso: You have written that this interface does work not with binary formats
anymore.. This is not described in the IDL. Further the
com.sun.star.task.ErrorCodeIOException
 is also not described in the IDL. Only a  com::sun::star::io::IOException is valid.
BTW: the crash is fixed in fwkbugfix03.
Comment 9 chne 2004-11-10 16:54:10 UTC
see message above.
Comment 10 kai.sommerfeld 2004-11-11 08:05:20 UTC
KSO->CN: This bug is about the crash and therefore duplicate (and fixed
meanwhile) and should be closed. If there are additional problems with
documentation. please file another task for this. Andreas Schluens would be the
right owner.

Regarding the documentation issues: 

com.sun.star.task.ErrorCodeIOException is derived from css.io.IOException. Thus,
it is no bug to throw ErrorCodeIOException. Anyway, better documentation would
be very helpful. Especially it should be explained that not every document has a
document info (that can be accessed using the StandAloneDocumentInfo service)
and what exception will be thrown by loadFromURL() in this case.

Comment 11 chne 2004-11-16 07:53:08 UTC
for the documentation issue  i37219 is written. The crash is fixed
Comment 12 chne 2004-11-16 07:53:24 UTC
close