loans with HHH:MM:SS durations can fail
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Medium
|
Unassigned | ||
3.3 |
Fix Released
|
Medium
|
Unassigned |
Bug Description
If a loan duration is expressed in PostgreSQL in the form HHH:MM:SS, i.e., where the number of hours spans more than two digits, a checkout that uses that duration can fail with the following sort of error:
error calling method open-ils.
The following parameter was passed in the call to DateTime:
at /usr/lib/
DateTime:
DateTime:
OpenILS:
OpenILS:
...
An example of such a duration in found in production use is 167:59:59. This duration was set for a laptop reserves loan, and the interval was intentionally set to a week minus one second to avoid having the due time be bumped up to midnight.
Evergreen 3.4+
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
This may well affect 3.3 as well, and possibly earlier versions.