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

Jesse Vincent jesse at bestpractical.com
Fri Jul 21 11:50:32 EDT 2006




On Fri, Jul 21, 2006 at 09:11:26AM -0400, Dmitri Tikhonov wrote:
> 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
> 
>   '[a-zA-Z][a-zA-Z0-9_-]*'
> 
> One solution is to allow whitespace for custom fields:
> 
>   '(?:[a-zA-Z][a-zA-Z0-9_-]*|CF-[a-zA-Z0-9_ -]*)'

I'd take a patch to do this. Thanks

> 
> 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).
> 
> Comments?
> 
>   - Dmitri.
> 
> 
> _______________________________________________
> List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
> 
> Best Practical is hiring! Come hack Perl for us: http://bestpractical.com/about/jobs.html
> 

-- 


More information about the Rt-devel mailing list