[rt-devel] rt CLI on rt-3-0-8

Andrew Stribblehill a.d.stribblehill at durham.ac.uk
Tue Jan 20 04:37:51 EST 2004


Quoting Asif Iqbal <iqbala at qwestip.net> (2004-01-20 01:59:20 GMT):
> Hi All
> 
> When I try to rt CLI (from rt-3-0-8) on my rt-3-0-5 I get this error
> 
> rt: Malformed RT response from http://x.y.z.net.  and no output
> 
> Anyone has a fix/workaround/suggestion to get rid of this error and get an
> output without using the RTDEBUG value. Let me know if I shouldn't cross post
> this email.

[followup-to trimmed to rt-devel]

The following patch may help:

diff -urNad /home/wompom/ads/debian/request-tracker3/request-tracker3-3.0.7+01/bin/rt.in request-tracker3-3.0.7+01/bin/rt.in
--- /home/wompom/ads/debian/request-tracker3/request-tracker3-3.0.7+01/bin/rt.in
 2003-11-18 03:54:05.000000000 +0000
+++ request-tracker3-3.0.7+01/bin/rt.in 2003-11-20 17:23:30.000000000 +0000
@@ -720,6 +720,7 @@
         # a blank line, and arbitrary text.
 
         my ($head, $text) = split /\n\n/, $res->content, 2;
+       $head =~ s/^\s+//;
         my ($status, @headers) = split /\n/, $head;
         $text =~ s/\n*$/\n/;
 
It was necessary for 3.0.7-01 and the patch at least still applies to
3.0.8 though I didn't test whether it was necessary.

-- 
FAIR ISLE
VARIABLE 3 OR 4 BECOMING SOUTHEASTERLY 5 OR 6, VEERING WESTERLY 4 OR
5 IN WEST LATER. OCCASIONAL RAIN. MODERATE OR GOOD



More information about the Rt-devel mailing list