[Koha-bugs] [Bug 15190] Bad utf8 decode to unapi and fixing blank screen error status

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Nov 13 22:54:13 CET 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15190

--- Comment #1 from Héctor Eduardo Castro Avalos <hector.hecaxmmx at gmail.com> ---
Created attachment 44861
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44861&action=edit
15190 - Bad utf8 decode to unapi and fixing blank screen error status

Fix bad utf8 decoding, also fix cgi->header(-status) to
redirect to one of the posible error pages in /cgi-bin/koha/errors/

To test
1) Copy from LOC (Z39.50) ISBN 8467020113
2) Open URL cgi-bin/koha/unapi?id=koha:biblionumber:4&format=marcxml
3) (enter the new biblionumber for ISBN 8467020113)
4) A marcxml record will display, notice about the bad utf8
   decoding characters
5) Search the record in opac and try to save in Zotero (see bad decoding)
   delete record from Zotero.
6) To reproduce blank screen (error status) play with:
    cgi-bin/koha/unapi?id=koha:biblionumber:4
    cgi-bin/koha/unapi?id=koha:biblionumber:4&format=
    cgi-bin/koha/unapi?id=koha:biblionumber:4&format=none
    cgi-bin/koha/unapi?id=koha:biblionumber:&format=marcxml
    cgi-bin/koha/unapi?&format=oai_dc
    cgi-bin/koha/unapi?
7) If possible test in NORMARC (UNIMARC will launch an error because bug 15162)
-Apply patch
-Follow steps 2 to 6
-You will see no errors in utf8 and redirection to one of the
 error pages in /cgi-bin/koha/errors/

-- 
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