> > Hi,
> >
> > I'm using the perl module 'RT::Client::REST' to query the database for
> > tickets with a specific custom field with a value and update the tickets
> > to a different owner and state.
> >
> > Script works for 2 other queues without issue.  The 3rd queue however,
> > configured the same as far as I can see, behaves differently.
> 
> Sadly, I've confirmed this is a bug in the RT::Client::REST interface
> (also in 0.41).  Using RT's '/opt/rt3/bin/rt' does correctly retrieve all
> the custom fields.
> 
> Time for debug.

Debug has found the following (in both /opt/rt3/bin/rt and 
RT::Client::REST::Forms and RT::Client::REST::Object):

        * $CF_name defines the list of valid characters in a custom field name. 
 The field before my missing custom field had a question-mark in it (?).  This 
caused the field matching in the form parse routine to fail.
        * The RT::Client::REST::Object did further parsing to break down the 
attributes into a __cf hash.  It re-parsed the custom field names.  Same deal, 
question-mark.

Sending a patch through to the CPAN.  Single-character addition ;)

Stuart
--------
RT Training Sessions (http://bestpractical.com/services/training.html)
*  Chicago, IL, USA  September 26 & 27, 2011
*  San Francisco, CA, USA  October 18 & 19, 2011
*  Washington DC, USA  October 31 & November 1, 2011
*  Melbourne VIC, Australia  November 28 & 29, 2011
*  Barcelona, Spain  November 28 & 29, 2011

Reply via email to