<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=771023020-27062006><FONT face=Arial size=2>If you pass
non-numeric IDs to the rt edit command (which isn't very common with Tickets but
is very common with Assets if you're using the AT extension), you get warnings
about the ID not being numeric in a sort. For example:</FONT></SPAN></DIV>
<DIV><SPAN class=771023020-27062006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=771023020-27062006><FONT face=Arial size=2># rt edit
asset/server1 set CF-location="4th floor"</FONT></SPAN></DIV>
<DIV><SPAN class=771023020-27062006><FONT face=Arial size=2>Argument "server1"
isn't numeric in sort at /usr/local/rt/bin/rt line 1350.<BR></FONT></SPAN></DIV>
<DIV><SPAN class=771023020-27062006><FONT face=Arial size=2>The culprit is the
"expand_list" subroutine in the rt command perl script because this only expects
numeric IDs. This probably needs fixing since the REST interface allows for
named objects as well as numerically specified objects. As long as the machine
supports NaN types, the warning is harmless and it works anyway but I suspect
that it would fail otherwise so the expand_list sub should be fixed to sort
numeric and non-numeric object specifiers. I can submit a patch if this makes
sense.</FONT></SPAN></DIV>
<DIV><SPAN class=771023020-27062006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=771023020-27062006><FONT face=Arial size=2>Just to clarify,
it's not a problem with the AT REST interface, I've come across a few
assumptions like this in the RT REST code which had to be generalised to
get the AT REST code to work. This glitch is just because it doesn't make much
sense to refer to Tickets by "name" so the (sensible) assumption of a numeric id
for all objects passed to the rt command is only found when you are using things
like Assets which more obviously can be referred to by name.</FONT></SPAN></DIV>
<DIV><SPAN class=771023020-27062006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=771023020-27062006><FONT face=Arial
size=2>PK</FONT></SPAN></DIV>
<DIV align=left><FONT face=Arial size=2>--</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Philip Kime</FONT></DIV>
<DIV align=left>
<DIV align=left><FONT face=Arial size=2></FONT></DIV></DIV></BODY></HTML>