CLI - response / status problem

I’ve been trying to use the CLI without success. I’ve finally tracked
down the problem there being no newline, let alone two, after the
status. This is on FreeBSD 4.10. I’m using mod_auth_kerb for external
authentication, but with basic (vs. negotiate). Here are the applicable
lines from httpd.conf:

  LoadModule auth_kerb_module   libexec/apache2/mod_auth_kerb.so
  AuthName "Request Tracker"
  AuthType Kerberos
  KrbMethodNegotiate off
  KrbMethodK5Passwd on
  Krb5Keytab /etc/krb5.keytab
  KrbAuthRealms MIDDLEEARTH.PRV
  KrbSaveCredentials off
  KrbVerifyKDC off

I also made the following one line mod to the rt script after line 749:

$ua->credentials(‘pippin:1080’, ‘Request Tracker’, $config{user},
($config{passwd} || read_passwd()));

Any pointers on where to look next much appreciated.

pippin# setenv RTDEBUG 3
pippin# bin/rt ls -s -o -Priority "Status=‘stalled’"
POST http://pippin:1080/REST/1.0/search/ticket
Content-Length: 217
Content-Type: multipart/form-data; boundary=xYzZY
Cookie: RT_SID_middleearth.prv.1080=8923586e5278e619e6b224bdfa017bd4

–xYzZY
Content-Disposition: form-data; name=“format”

s
–xYzZY
Content-Disposition: form-data; name=“orderby”

-Priority
–xYzZY
Content-Disposition: form-data; name=“query”

Status=‘stalled’
–xYzZY–
HTTP/1.1 200 OK
Connection: close
Server: Apache/2.0.52 (FreeBSD) mod_perl/1.99_16 Perl/v5.8.5
mod_fastcgi/2.4.2 DAV/2 mod_auth_kerb/5.0-rc5 PHP/5.0.2 SVN/1.0.8
Content-Type: text/plain; charset=ISO-8859-1
Client-Date: Tue, 26 Oct 2004 20:46:28 GMT
Client-Peer: 172.16.1.27:1080
Client-Response-Num: 1
Client-Transfer-Encoding: chunked

RT/3.2.2 200 Ok188: A2PC: Facilities - Parking
191: A2PC: Facilaties - Parking: Phase III
192: A2PC: Facilaties - Parking: Phase IV
51: Adding new donor listing option
rt: Malformed RT response from http://pippin:1080.

I’ve been trying to use the CLI without success. I’ve finally tracked
down the problem there being no newline, let alone two, after the
status.

Change html/REST/1.0/search/ticket at the bottom from
$m->out(“RT/”. $RT::VERSION . " " . $status);
to
$m->out(“RT/”. $RT::VERSION . " " . $status . “\r\n”);

Although I still have the following error message in version 3.3.10:
$ RTDEBUG=3 rt ls -i “CustomFieldValue.{Kunde} like ‘10829%’”

RT/3.3.10 200 Ok
ticket/58
Use of uninitialized value in print at /usr/bin/rt line 270.

Any ideas why? The offending line says “print $r->content;”

bye,

-christian-

–xYzZY–
HTTP/1.1 200 OK
Connection: close
Date: Tue, 26 Oct 2004 20:46:28 GMT
Server: Apache/2.0.52 (FreeBSD) mod_perl/1.99_16 Perl/v5.8.5
mod_fastcgi/2.4.2 DAV/2 mod_auth_kerb/5.0-rc5 PHP/5.0.2 SVN/1.0.8
Content-Type: text/plain; charset=ISO-8859-1
Client-Date: Tue, 26 Oct 2004 20:46:28 GMT
Client-Peer: 172.16.1.27:1080
Client-Response-Num: 1
Client-Transfer-Encoding: chunked

RT/3.2.2 200 Ok188: A2PC: Facilities - Parking
191: A2PC: Facilaties - Parking: Phase III
192: A2PC: Facilaties - Parking: Phase IV

Christian Hammers WESTEND GmbH | Internet-Business-Provider
Technik CISCO Systems Partner - Authorized Reseller
Lï¿œtticher Straï¿œe 10 Tel 0241/701333-11
ch@westend.com D-52064 Aachen Fax 0241/911879

Christian Hammers wrote:>On Tue, Oct 26, 2004 at 02:06:36PM -0700, Jason Taylor wrote:

I’ve been trying to use the CLI without success. I’ve finally tracked
down the problem there being no newline, let alone two, after the
status.

Change html/REST/1.0/search/ticket at the bottom from
$m->out(“RT/”. $RT::VERSION . " " . $status);
to
$m->out(“RT/”. $RT::VERSION . " " . $status . “\r\n”);

Although I still have the following error message in version 3.3.10:
$ RTDEBUG=3 rt ls -i “CustomFieldValue.{Kunde} like ‘10829%’”

RT/3.3.10 200 Ok
ticket/58
Use of uninitialized value in print at /usr/bin/rt line 270.

Any ideas why? The offending line says “print $r->content;”

bye,

-christian-

Thanks for getting me this far. There has to be one blank line between
the header and the content so try:
$m->out(“RT/”. $RT::VERSION . " " . $status . “\n\n”);

Although I still have the following error message in version 3.3.10:
$ RTDEBUG=3 rt ls -i “CustomFieldValue.{Kunde} like ‘10829%’”

RT/3.3.10 200 Ok
ticket/58
Use of uninitialized value in print at /usr/bin/rt line 270.

Any ideas why? The offending line says “print $r->content;”

Thanks for getting me this far. There has to be one blank line between
the header and the content so try:
$m->out(“RT/”. $RT::VERSION . " " . $status . “\n\n”);

Thanks that works, I was stupid and when trying the first time, used
"\r\n\r\n" as in HTTP responses instead of plain “\n\n” :slight_smile:

bye,

-christian-

Christian Hammers WESTEND GmbH | Internet-Business-Provider
Technik CISCO Systems Partner - Authorized Reseller
Lï¿œtticher Straï¿œe 10 Tel 0241/701333-11
ch@westend.com D-52064 Aachen Fax 0241/911879