tpac: Net::HTTP version prevents Added Content display

Bug #1654558 reported by Bill Ott
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Evergreen
Confirmed
Medium
Unassigned

Bug Description

Evergreen 2.11
Ubuntu 16.04
Net::HTTP v.6.09

I discovered that Syndetics content was not being displayed in the tpac under Additional Content. Tabs for Excerpt, Summary, Reviews, etc. would come and go based on available content, but no data populated the expanded window.

Further investigation let me to find that requests to syndetics.com were being made and that accessing /opac/extras/ac/ac/<type>/<bib_id> directly did display the desired content.

Debug data led me to discover that the read_response_headers() call to Net::HTTP::NB was returning an undefined value for requests that Apache reported as 200.

This issue does not occur when using Net::HTTP v.6.00, and I believe the issue lies within the my_readline() sub of Methods.pm. I haven't pin pointed the cause, or a solution for EG other than downgrading the noted module.

Useful info:
http://cpansearch.perl.org/src/OALDERS/Net-HTTP-6.12/Changes

Revision history for this message
Jason Stephenson (jstephenson) wrote :

Other options include:

Trying the most recent version of Net::HTTP/libwww-perl from CPAN.

If it is resolved there, I suggest bugging this on Lp for Ubuntu 16.04 asking that the module be upgraded.

If it is not fixed there, I recommend bugging this on rt.cpan.org.

If time permits, I'll try this on an Ubuntu 16.04 VM to see if it is fixed in 6.12, or if I can even come up with a fix if it isn't.

Changed in evergreen:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Bill Ott (bott) wrote :

I should have noted. I did pull v.6.12 from CPAN and it did not resolve the issue.

Revision history for this message
Jason Stephenson (jstephenson) wrote :

Thanks for the update, Bill! That will save some testing time.

I'll go ahead and assign this one to myself. I should be able to look at it this weekend.

I'll start with 6.12 and see if I can come up with a fix. Whether I can or not, I'll bug this on CPAN after looking at it.

I could not find a comparable bug on CPAN, but admittedly, I didn't look too hard.

Changed in evergreen:
assignee: nobody → Jason Stephenson (jstephenson)
Revision history for this message
Jason Stephenson (jstephenson) wrote :

Oh, I should add this also affects Content Cafe.

summary: - tpac: Net::HTTP version prevents Syndetics content display
+ tpac: Net::HTTP version prevents Added Content display
Revision history for this message
Jason Stephenson (jstephenson) wrote :

Yeah, I am probably not going to get to this right away, so removing myself in case someone else wants to have a look.

It's not really an Evergreen bug, but a bug in certain versions of a Perl package used by Evergreen.

Changed in evergreen:
assignee: Jason Stephenson (jstephenson) → nobody
Revision history for this message
John Merriam (jmerriam) wrote :

Hello. We ran in to this bug as well after upgrading from Ubuntu 14 to 16 (Trusty to Xenial). Net::HTTP 6.17 appears to work correctly. We installed the Bionic libnet-http-perl package as found here:

https://launchpad.net/ubuntu/bionic/amd64/libnet-http-perl

in our Xenial Evergreen servers and added content now displays correctly.

Elaine Hardy (ehardy)
tags: added: addedcontent tpac
tags: added: opac
removed: tpac
Revision history for this message
Jane Sandberg (sandbergja) wrote (last edit ):

Since all currently supported debian and ubuntu distros ship Net::HTTP 6.17 or higher, can this ticket be closed?

See:
* https://packages.ubuntu.com/bionic/libnet-http-perl
* https://packages.debian.org/buster/libnet-http-perl

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.