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

            Bug ID: 38926
           Summary: POST /biblios returns 200 even if AddBiblio fails
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          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]
        Depends on: 31800

For some reasons I POSTed an invalid biblio to /api/v1/biblios
it returned {id: null}

The biblio record is not created, but the response is 200.

707         my ( $biblio_id ) = AddBiblio( $record, $frameworkcode, {
record_source_id => $record_source_id } );
708 
709         $c->render(
710             status  => 200,
711             openapi => { id => $biblio_id }
712         );

Obviously we should test $biblio_id


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31800
[Bug 31800] Add POST endpoint for Biblios
-- 
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]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to