Whenever I try to use the bin/rt command line tool, it comes back with
“rt: Malformed RT response from http://localhost.”
I tried modifying the file share/html/REST/1.0/search/ticket as suggested in
http://lists.bestpractical.com/pipermail/rt-users/2004-October/026706.html
but this didn’t help.
I’ve tried various commands like, rt ls “Priority > 5 and
Status=‘new’” and rt ls -t user 34 but the result is always the same.
The access_log shows:
localhost - - [16/Nov/2004:09:46:46 -0500] “POST /REST/1.0/search/user
HTTP/1.1” 200 4325
No errors in error_log.
The rt.log shows:
[Tue Nov 16 14:46:46 2004] [info]: Successful login for root from
127.0.0.1 (/usr/local/rt3/share/html/autohandler:182)
And the debug output:
rt ls -t user 34
POST http://localhost/REST/1.0/search/user
Content-Length: 203
Content-Type: multipart/form-data; boundary=xYzZY
–xYzZY
Content-Disposition: form-data; name=“query”
34
–xYzZY
Content-Disposition: form-data; name=“user”
root
–xYzZY
Content-Disposition: form-data; name=“pass”
xxxxxxxxxxxx
–xYzZY–
HTTP/1.1 200 OK
Cache-Control: no-cache
Connection: close
Pragma: no-cache
Server: Apache
Content-Type: text/html; charset=utf-8
Client-Date: Tue, 16 Nov 2004 14:46:46 GMT
Client-Peer: 127.0.0.1:80
Client-Response-Num: 1
Client-Transfer-Encoding: chunked
Link: <https:///NoAuth/images/favicon.png>;
rel=“shortcut icon”; type=“image/png”
Link: </NoAuth/webrt.css>; rel=“stylesheet”; type=“text/css”
Set-Cookie: RT_SID_<mywebrt.hostname>.80=xxxxxxxxsnipxxxxxxxxx; path=/
Title:
- <A HREF="/SelfService/" style="font-size: 16;"
class="topnav"
accesskey=‘1’>Open tickets
- <A HREF="/SelfService/Closed.html"
style="font-size: 16;" class="topnav"
accesskey=‘2’>Closed tickets
- <A HREF="/SelfService/Create.html"
style="font-size: 16;" class="topnav"
accesskey=‘3’>New ticket
- <A HREF="/SelfService/Prefs.html"
style="font-size: 16;" class="topnav"
accesskey=‘4’>Preferences
|
RT Self Service
|
|
rt: Malformed RT response from http://localhost.
Any ideas?
Andy Harrison
|
|
A user with only self-service access is trying to access RT.On Tue, Nov 16, 2004 at 10:00:44AM -0500, Andy Harrison wrote:
Whenever I try to use the bin/rt command line tool, it comes back with
“rt: Malformed RT response from http://localhost.”
I tried modifying the file share/html/REST/1.0/search/ticket as suggested in
[rt-users] Login screen popping up after each request for anewscreen
but this didn’t help.
I’ve tried various commands like, rt ls “Priority > 5 and
Status=‘new’” and rt ls -t user 34 but the result is always the same.
The access_log shows:
localhost - - [16/Nov/2004:09:46:46 -0500] “POST /REST/1.0/search/user
HTTP/1.1” 200 4325
No errors in error_log.
The rt.log shows:
[Tue Nov 16 14:46:46 2004] [info]: Successful login for root from
127.0.0.1 (/usr/local/rt3/share/html/autohandler:182)
And the debug output:
rt ls -t user 34
POST http://localhost/REST/1.0/search/user
Content-Length: 203
Content-Type: multipart/form-data; boundary=xYzZY
–xYzZY
Content-Disposition: form-data; name=“query”
34
–xYzZY
Content-Disposition: form-data; name=“user”
root
–xYzZY
Content-Disposition: form-data; name=“pass”
xxxxxxxxxxxx
–xYzZY–
HTTP/1.1 200 OK
Cache-Control: no-cache
Connection: close
Date: Tue, 16 Nov 2004 14:46:46 GMT
Pragma: no-cache
Server: Apache
Content-Type: text/html; charset=utf-8
Client-Date: Tue, 16 Nov 2004 14:46:46 GMT
Client-Peer: 127.0.0.1:80
Client-Response-Num: 1
Client-Transfer-Encoding: chunked
Link: <https:///NoAuth/images/favicon.png>;
rel=“shortcut icon”; type=“image/png”
Link: </NoAuth/webrt.css>; rel=“stylesheet”; type=“text/css”
Set-Cookie: RT_SID_<mywebrt.hostname>.80=xxxxxxxxsnipxxxxxxxxx; path=/
Title:
- <A HREF="/SelfService/" style="font-size: 16;"
class="topnav"
accesskey=‘1’>Open tickets
- <A HREF="/SelfService/Closed.html"
style="font-size: 16;" class="topnav"
accesskey=‘2’>Closed tickets
- <A HREF="/SelfService/Create.html"
style="font-size: 16;" class="topnav"
accesskey=‘3’>New ticket
- <A HREF="/SelfService/Prefs.html"
style="font-size: 16;" class="topnav"
accesskey=‘4’>Preferences
|
|
A user with only self-service access is trying to access RT.
Doh… got it.
Also, am I correct that bin/rt cannot do a date query? “Created < ‘2
days ago’” for instance?
Andy Harrison