<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/zcontent/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/zcontent/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Mon, 12 Apr 2004 14:35:08 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/zcontent/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>ContentDM 3.6 HTTP response parsing bug</title><link>https://sourceforge.net/p/zcontent/bugs/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I found what appears to be an easy-to-fix bug in &lt;br /&gt;
zcontent version 0.7.0.  I only have the Linux version of &lt;br /&gt;
CONTENTdm server to test on so I'm not sure to what &lt;br /&gt;
extent this affects other versions of zcontent and &lt;br /&gt;
CONTENTdm.&lt;/p&gt;
&lt;p&gt;The problem appears to occur in parsing the HTTP &lt;br /&gt;
response from the /cgi-bin/queryget.exe request.  Line &lt;br /&gt;
570 contains this code:&lt;/p&gt;
&lt;p&gt;"  chop @responseList;           #get rid of the newline &lt;br /&gt;
characters."&lt;/p&gt;
&lt;p&gt;The problem is that (at least on the Linux version), this &lt;br /&gt;
chops even real characters off the response lines.&lt;br /&gt;
Thus, later, when the code looks for results by looking &lt;br /&gt;
for this line: "&amp;lt;!--start of data--&amp;gt;", it fails because the &lt;br /&gt;
line is chopped to become "&amp;lt;!--start of data--".&lt;/p&gt;
&lt;p&gt;Here is a patch that fixes this and returns proper results &lt;br /&gt;
for CONTENTdm 3.6:&lt;/p&gt;
&lt;p&gt;*** ContentDM.pm        2004-04-08 &lt;br /&gt;
15:41:35.000000000 -0400&lt;br /&gt;
--- ContentDM.pm.orig   2004-04-08 &lt;br /&gt;
15:41:15.000000000 -0400&lt;br /&gt;
***************&lt;br /&gt;
*** 567,574 ****&lt;br /&gt;
my $appendResults = shift;&lt;/p&gt;
&lt;p&gt;my @responseList = split(/\n/,$response);&lt;br /&gt;
!   # fix by OCLC&lt;br /&gt;
!   chomp @responseList;                #get rid of the &lt;br /&gt;
newline characters but don't chop real chars&lt;br /&gt;
my $count = 0;&lt;br /&gt;
for my $line (@responseList) {&lt;br /&gt;
#   print "$line\n";&lt;br /&gt;
--- 567,573 ----&lt;br /&gt;
my $appendResults = shift;&lt;/p&gt;
&lt;p&gt;my @responseList = split(/\n/,$response);&lt;br /&gt;
!   chop @responseList;         #get rid of the newline &lt;br /&gt;
characters.&lt;br /&gt;
my $count = 0;&lt;br /&gt;
for my $line (@responseList) {&lt;br /&gt;
#   print "$line\n"&lt;/p&gt;
&lt;p&gt;My Environment Details:&lt;/p&gt;
&lt;p&gt;OS: RedHat Linux 9&lt;br /&gt;
Perl: 5.8.0 (rpm version perl-5.8.0-88.3)&lt;br /&gt;
glibc: 3.2.2 20030222 (Red Hat Linux 3.2.2-5)&lt;br /&gt;
kernel: 2.4.20-30.9bigmem #1 SMP Wed Feb 4 20:27:00 &lt;br /&gt;
EST 2004 i686 i686 i386 GNU/Linux&lt;/p&gt;
&lt;p&gt;My Contact information:&lt;/p&gt;
&lt;p&gt;Dave Costakos&lt;br /&gt;
costakod@oclc.org&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Mon, 12 Apr 2004 14:35:08 -0000</pubDate><guid>https://sourceforge.net4538687fac278da67931b36407beb1ba72b7bfcc</guid></item></channel></rss>