[Libreoffice-bugs] [Bug 116079] Opening ODS file rise Incorrect Format exception. Opened well with OpenOffice 4.1.3
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Thu Mar 12 20:48:47 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=116079
--- Comment #14 from Julien Nabet <serval2412 at yahoo.fr> ---
(In reply to Noel Grandin from comment #13)
> If Julien is correct in comment#10, then that is technically not a
> well-formed XML document.
Here's what I did:
julien at debianamd:/tmp/jul$ mv REPORT_UNIT_TO_ODS.ods REPORT_UNIT_TO_ODS.zip
julien at 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 at debianamd:/tmp/jul$ cat meta.xml
<?xml version="1.0" encoding="UTF-8"?>
julien at debianamd:/tmp/jul$
> 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.
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?
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200312/bce98c29/attachment.htm>
More information about the Libreoffice-bugs
mailing list