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

Héctor Eduardo Castro Avalos <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #45427|0                           |1
        is obsolete|                            |

--- Comment #7 from Héctor Eduardo Castro Avalos <[email protected]> ---
Created attachment 45428
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=45428&action=edit
Bug 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 reproduce the issue in OPAC
1) Copy from LOC (Z39.50) ISBN 8467020113 or test it with whichever record with
   special characters
2) Open URL in OPAC cgi-bin/koha/unapi?id=koha:biblionumber:4&format=oai_dc
   play with oai_dc, srw_dc, mods, mods-full, mods3, mods3-full, rdfdc.
   Note: marcxml does not fail
3) Enter the new biblionumber for ISBN 8467020113 or the record of your choise
4) An oai_dc record will display, notice about the bad utf8
   decoding characters
5) Search the record in OPAC
6) To reproduce blank screen (error status) play with:
    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=oai_dc
    cgi-bin/koha/unapi?&format=oai_dc
7) If possible test in NORMARC (UNIMARC will launch an error because bug 15162)

Test plan
-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 watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://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