Subject: | Custom field name with a ? character in it breaks CF fields after it |
Date: | Wed, 31 Aug 2011 14:35:36 +1000 |
To: | "bug-RT-Client-REST [...] rt.cpan.org" <bug-RT-Client-REST [...] rt.cpan.org> |
From: | Stuart Browne <stuart.browne [...] ausregistry.com.au> |
I noticed that RT::Client::REST wasn't correctly getting all of the custom fields on a particular queue in my RT configuration.
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 fields 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.
Single-character addition ;)
Stuart J. Browne
Senior Unix Administrator, Network Administrator
AusRegistry Pty Ltd
Level 8, 10 Queens Road
Melbourne. Victoria. Australia. 3004.
Ph: +61 3 9866 3710
Fax: +61 3 9866 1970
Email: stuart.browne@ausregistry.com.au
Web: www.ausregistry.com.au
The information contained in this communication is intended for the named recipients only. It is subject to copyright and may contain legally privileged and confidential information and if you are not an intended recipient you must not use, copy, distribute or take any action in reliance on it. If you have received this communication in error, please delete all copies from your system and notify us immediately.
Message body is not shown because sender requested not to inline it.