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

            Bug ID: 43196
           Summary: PUT requests with a bad request body to biblios
                    endpoint blanks a record
   Initiative type: ---
        Sponsorship ---
            status:
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: REST API
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected]
  Target Milestone: ---

TO recreate:

1. Have a record in Koha with good MARC data. In KTD I'm using biblionumber=32
as an example.
2. Do a PUT requested with invalid JSON in it. I did this:

curl -u koha:koha -X PUT http://localhost:8081/api/v1/biblios/32 -H
"Content-Type: application/marc-in-json" -H "Accept: application/json" -d
'{"leader":"00000nam a2200000 a
4500","fields":[{"245":{"ind1":"1","ind2":"0","subfields":[{"a":"STOP HERE ON
PURPOSE!!!'


3. The response is 200, success. 
4. Now go look at the record in Koha. It is contains nothing in the MARC record
now.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to