Next 10 Generates XML Error

Bug #1861012 reported by Shula Link
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Confirmed
Medium
Unassigned

Bug Description

Evergreen 3.4.1

Chrome Version 79.0.3945.130

This is a slightly convoluted one:

When accessing a records page from an UNAPI generated link, the "Next 10" link generates raw XML with the error "This XML file does not appear to have any style information associated with it."

To recreate (simple version):

1) Go to an UNAPI generated item link (http://gapines.org/opac/extras/unapi?id=tag:open-ils.org,2020-01-25:biblio-record_entry/6096008/GCHR&format=opac as an example)
2) Click "Next 10"
3) Observe the error.

Tags: opac unapi
Revision history for this message
Galen Charlton (gmc) wrote :

Bug confirmed. Something like this appears to help by ensuring that the unAPI request fully redirects to the intended record URL rather than, as appears to be the case currently, having the request be passed from the SuperCat::unapi handler to the record handler.

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm
index 2ba1f381a4..739d8f98ca 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm
@@ -737,9 +737,9 @@ sub unapi {
     }

     if ($format eq 'opac') {
- print "Location: $root/../../$locale/skin/$skin/xml/rresult.xml?m=$id&l=$lib_id&d=$lib_depth\n\n"
+ $apache->headers_out->add('Location' => "$root/../../$locale/skin/$skin/xml/rresult.xml?m=$id&l=$lib_id&d=$lib_depth")
             if ($type eq 'metarecord');
- print "Location: /eg/opac/record/$id?locg=$lib_id&depth=$lib_depth\n\n"
+ $apache->headers_out->add('Location' => "/eg/opac/record/$id?locg=$lib_id&depth=$lib_depth")
             if ($type eq 'record');
         return 302;
     } elsif (OpenILS::WWW::SuperCat::Feed->exists($base_format) && ($type ne 'acn' && $type ne 'acp' && $type ne 'auri')) {

Changed in evergreen:
status: New → Confirmed
tags: added: opac unapi
Changed in evergreen:
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.