https://bugs.openldap.org/show_bug.cgi?id=9837
Issue ID: 9837 Summary: Don't throw exceptions when requesting empty integer fields Product: JLDAP Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: JDBC Assignee: bugs@openldap.org Reporter: fredrik@roubert.name Target Milestone: ---
LibreOffice Base expects to be able to call LdapResultSet.getLong() on an empty Types.INTEGER field without any exception being thrown and the exception that Long.parseLong() throws when passed an empty string will terminate the query with an error message.
While I don't know if the JDBC standard says anything about how this is supposed to be handled, it seems reasonable (and harmless) for JDBC-LDAP to accomodate the existing behaviour such a popular open source software package as LibreOffice Base.
https://bugs.openldap.org/show_bug.cgi?id=9837
--- Comment #1 from Fredrik Roubert fredrik@roubert.name --- My proposed fix:
https://git.openldap.org/openldap/jdbcldap/-/merge_requests/4
https://bugs.openldap.org/show_bug.cgi?id=9837
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED Keywords|needs_review |
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org --- • e8848f1d by Fredrik Roubert at 2022-05-02T13:40:01+00:00 ITS#9837 Don't throw exceptions when requesting empty integer fields.
https://bugs.openldap.org/show_bug.cgi?id=9837
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED