[Libreoffice-bugs] [Bug 119694] HSQLDB driver not loading causes BASE error in embedded hsqldb database

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Sep 5 12:44:15 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=119694

--- Comment #24 from Lionel Elie Mamane <lionel at mamane.lu> ---
(In reply to Regina Henschel from comment #22)
> <db:data-source db:connection-resource="sdbc:embedded:hsqldb"> is invalid in
> ODF, because the <db:data-source> element has no attributes.

While I see that in ODF 1.2, I cannot find any reference to this, either as
element or attribute. And anyway, to ensure backwards compatibility, we need to
recognise it even if invalid.

In dbaccess/source/filter/xml/xmlDataSource.cxx around line 75, we see the
recognition of db:connection-resource as attribute of db:data-source. From
gawping at the code, it seems to still be there in LibreOffice 6.1. And it is
doing exactly the same as the recognition of the xlink attribute of a
db:connection-resource child of a db:data-source in
dbaccess/source/filter/xml/xmlConnectionResource.cxx around line 65:

  xDataSource->setPropertyValue(PROPERTY_URL,makeAny(sValue));

so whatever is happening is more subtle.

The error message says that LibreOffice tries to load a JDBC driver with an
empty class name; so somehow it recognises that it is a JDBC connection (and
that is correct, embedded HSQLDB is a JDBC connection), but it does not
recognise that it is an embedded HSQLDB...

-- 
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/20180905/2d67dfc4/attachment-0001.html>


More information about the Libreoffice-bugs mailing list