[Koha-bugs] [Bug 21219] New: NULL values in updated_on field break the Patrons REST API

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Aug 14 16:28:19 CEST 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21219

            Bug ID: 21219
           Summary: NULL values in updated_on field break the Patrons REST
                    API
 Change sponsored?: ---
           Product: Koha
           Version: 18.05
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P5 - low
         Component: REST api
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: koha at jsense.co.uk

The swagger definition does not allow for updated_on to be NULL but the
database does allow this. If a patron has a null value then the REST service
call fails.

The history of this is as follows:
Bug #10459 (released in 16.05.01) - updated_on field added to borrowers table,
NULL allowed

Bug #17651 (released in 16.11) - fix swagger definition to allow for NULL 
    "updated_on": {
-      "type": "string",
+      "type": ["string", "null"],
      "description": "time of last change could be useful for synchronization
with external systems (among others)"
    },

Bug #16330 (released in 18.05) - removes the null option from the definition
  "updated_on": {
-      "type": ["string", "null"],
+      "type": "string",
      "format": "date-time",
      "description": "time of last change could be useful for synchronization
with external systems (among others)"
    },

You can see that the last push undid the previous bug fix.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list