[Rt-devel] [BUG]: whitespace in custom fields not allowed by REST protocol.

Dmitri Tikhonov dtikhonov at vonage.com
Fri Jul 21 09:11:26 EDT 2006

Dear list,

I noticed that both /usr/bin/rt and RT::Interface::REST do not support
whitespace in attribute names.  However, whitespace is allowed in Custom
field.  Take, for instance, rt.cpan.org:

  CF-Severity: Critical
  CF-Broken in: 0.05
  CF-Fixed in:

The problem is with $field variable, which is set to


One solution is to allow whitespace for custom fields:

  '(?:[a-zA-Z][a-zA-Z0-9_-]*|CF-[a-zA-Z0-9_ -]*)'

Another solution is to disallow whitespace in custom fields.  My point
is, REST should be consistent with RT rules, otherwise it becomes
unusable.  (Try doing 'edit' on CPAN RT tickets).


  - Dmitri.

More information about the Rt-devel mailing list