<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Opening ODS file rise Incorrect Format exception. Opened well with OpenOffice 4.1.3"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=116079#c14">Comment # 14</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Opening ODS file rise Incorrect Format exception. Opened well with OpenOffice 4.1.3"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=116079">bug 116079</a>
from <span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span></b>
<pre>(In reply to Noel Grandin from <a href="show_bug.cgi?id=116079#c13">comment #13</a>)
<span class="quote">> If Julien is correct in <a href="show_bug.cgi?id=116079#c10">comment#10</a>, then that is technically not a
> well-formed XML document.</span >
Here's what I did:
julien@debianamd:/tmp/jul$ mv REPORT_UNIT_TO_ODS.ods REPORT_UNIT_TO_ODS.zip
julien@debianamd:/tmp/jul$ unzip REPORT_UNIT_TO_ODS.zip
Archive: REPORT_UNIT_TO_ODS.zip
inflating: content.xml
inflating: meta.xml
inflating: settings.xml
inflating: styles.xml
inflating: mimetype
inflating: META-INF/manifest.xml
julien@debianamd:/tmp/jul$ cat meta.xml
<?xml version="1.0" encoding="UTF-8"?>
julien@debianamd:/tmp/jul$
<span class="quote">> Probably we used to accept it because we were being a little sloppy.
> I suggest you go up the stack to just above the parser, and check if the
> data-stream contains exactly that sequence of chars, and then just return OK.</span >
Here's the bt from the method quoted in my previous comment:
#0 0x00007fffe4c69570 in sax_fastparser::FastSaxParserImpl::parse()
(this=0x1b0a270) at sax/source/fastparser/fastparser.cxx:1044
#1 0x00007fffe4c68997 in
sax_fastparser::FastSaxParserImpl::parseStream(com::sun::star::xml::sax::InputSource
const&) (this=<optimized out>, rStructSource=...) at
sax/source/fastparser/fastparser.cxx:869
#2 0x00007ffff1e0dc21 in
SvXMLImport::parseStream(com::sun::star::xml::sax::InputSource const&)
(this=0x1b08620, aInputSource=...) at xmloff/source/core/xmlimp.cxx:488
#3 0x00007fffe42e88c0 in
ScXMLImportWrapper::ImportFromComponent(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>
const&, com::sun::star::uno::Reference<com::sun::star::frame::XModel> const&,
com::sun::star::uno::Reference<com::sun::star::xml::sax::XParser> const&,
com::sun::star::xml::sax::InputSource&, rtl::OUString const&, rtl::OUString
const&, rtl::OUString const&,
com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&, bool)
(this=0x7fffffff1d38, xContext=..., xModel=..., xParser=..., aParserInput=...,
sComponentName=..., sDocName=..., sOldDocName=..., aArgs=...,
bMustBeSuccessfull=false)
at sc/source/filter/xml/xmlwrap.cxx:189
#4 0x00007fffe42ea712 in ScXMLImportWrapper::Import(ImportFlags, ErrCode&)
(this=0x7fffffff1d38, nMode=<optimized out>, rError=...) at
sc/source/filter/xml/xmlwrap.cxx:432
#5 0x00007fffe43fcecc in ScDocShell::LoadXML(SfxMedium*,
com::sun::star::uno::Reference<com::sun::star::embed::XStorage> const&)
(this=0x1a5ef70, pLoadMedium=0x1a65fa0, xStor=...)
at sc/source/ui/docshell/docsh.cxx:481
#6 0x00007fffe43fde38 in ScDocShell::Load(SfxMedium&) (this=0x1a5ef70,
rMedium=...) at sc/source/ui/docshell/docsh.cxx:628
#7 0x00007ffff6923107 in SfxObjectShell::LoadOwnFormat(SfxMedium&)
(this=0x1a5ef70, rMedium=...) at sfx2/source/doc/objstor.cxx:3033
#8 0x00007ffff692437b in SfxObjectShell::DoLoad(SfxMedium*) (this=0x1a5ef70,
pMed=0x1a65fa0) at sfx2/source/doc/objstor.cxx:674
#9 0x00007ffff6954d2d in
SfxBaseModel::load(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>
const&) (this=0x1a62260, seqArguments=...) at
sfx2/source/doc/sfxbasemodel.cxx:1879
#10 0x00007ffff69eddcd in (anonymous
namespace)::SfxFrameLoader_Impl::load(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>
const&, com::sun::star::uno::Reference<com::sun::star::frame::XFrame> const&)
(this=<optimized out>, rArgs=..., _rTargetFrame=...) at
sfx2/source/view/frmload.cxx:680
#11 0x00007fffe54432f0 in framework::LoadEnv::impl_loadContent()
(this=0x195a468) at framework/source/loadenv/loadenv.cxx:1157
Where could I bypass and how?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>