[Libreoffice-bugs] [Bug 131710] Undocumented behavior of com.sun.star.sdb.DatabaseContext implementation of com.sun.star.uno.XNamingService
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed Nov 11 19:54:16 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=131710
Mike Kaganski <mikekaganski at hotmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Keywords| |difficultyMedium, easyHack,
| |skillCpp
Ever confirmed|0 |1
--- Comment #3 from Mike Kaganski <mikekaganski at hotmail.com> ---
FTR: the definition of the interface behavior is given in
udkapi/com/sun/star/uno/XNamingService.idl [1].
The implementation of DatabaseContext's registerObject is in
dbaccess/source/core/dataaccess/databasecontext.cxx. After initial argument
checks, it calls registerDatabaseLocation, which in turn calls
DatabaseRegistrations::registerDatabaseLocation, and the latter calls
impl_checkValidName_throw_must_not_exist.
So to conform to the documented behavior, DatabaseContext::registerObject
should ensure to de-register existing registration for the name before trying
to register.
Similar for revokeObject.
[1]
https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1uno_1_1XNamingService.html
--
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/20201111/7cb18941/attachment.htm>
More information about the Libreoffice-bugs
mailing list