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

            Bug ID: 43460
           Summary: REST API XML payload conversion breaks plugin API
                    routes that consume XML
   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: ---

Bug 37762 makes the REST API convert request bodies sent with an
application/xml content type to JSON so they can be validated against Koha's
swagger definitions, and convert response bodies with an application/xml
content type from JSON to XML. Both hooks apply to every route, including the
/contrib plugin routes.

Plugins define their own API contracts and may read and output XML directly.
For example, the POC for the NCIP server plugin accepts XML messages on its
route. On Koha 26.05 and later the request hook replaces the incoming NCIP
message with a JSON rendering of it before the plugin controller runs,
destroying the message such that element attributes and ordering are lost with
no way to get to that data. The response hook then dies trying to parse the
plugin's XML response as JSON, turning it into a 500.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
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