wtsi-npg / baton

iRODS client programs and API
http://wtsi-npg.github.io/baton
GNU General Public License v2.0
19 stars 19 forks source link

iRODS 4-3-stable branch failure to log in: SYS_LIBRARY_ERROR from server #281

Closed kjsanger closed 11 months ago

kjsanger commented 11 months ago

All login attempts get this error returned from the server:

2023-10-03T08:33:36Z ERROR Failed to log in to iRODS: -167000 SYS_LIBRARY_ERROR

This is on nightly builds of 4-3-stable.

kjsanger commented 11 months ago

Resolved by #282

iRODS 4.3.1 introduces a change where the second argument to clientLogin may no longer be an empty string, but must be some kind of JSON document. The iRODS client library tries to parse the argument and raises SYS_LIBRARY_ERROR if it is empty.

The parameters for clientLogin are not documented (that I can find), but passing a null instead of an empty string avoids the error. I don't know if there are deeper consequences.