[rt-users] RTFM bug

Tom Vier tom at triadsys.com
Tue Jan 11 15:52:55 EST 2005


In a single selection box (a custom field), if you select "(no value)" 
and submit, the bug is triggered.  I've attached the errors and can 
provide before and after snapshots of the mysql db.

Actually, it's worse than that. Any custom single-select or multiselect can 
trigger it. I changed the selection box types to single and now when i 
try to assign a value a second time (the first time works), i get an 
error and have to remove the records from FM_ArticlesCFValues.

System error
error:  	Undefined subroutine &RT::FM::ArticleCFValueCollection
called at /usr/share/perl5/RT/FM/Article_Overlay.pm line 1086.
context:  	
...  	
1082:  	$cf->Load( $args{'Field'} );
1083:  	
1084:  	#Load up the ObjectKeyword we\'re talking about
1085:  	
1086:  	my $values = RT::FM::ArticleCFValueCollection($self->CurrentUser);
1087:  	$values->LimitToArticle($self->id);
1088:  	$values->LimitToCustomField($self->id);
1089:  	my $CFObjectValue = $values->HasEntryWithContent($args{'Content'});
1090:  	
...  	
code stack:  	/usr/share/perl5/RT/FM/Article_Overlay.pm:1086
/usr/share/request-tracker3/html/RTFM/Article/Edit.html:206
/usr/share/request-tracker3/html/autohandler:200

raw error:
Undefined subroutine &RT::FM::ArticleCFValueCollection called at /usr/share/perl5/RT/FM/Article_Overlay.pm line 1086.


Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 131
HTML::Mason::Exceptions::rethrow_exception('Undefined subroutine &RT::FM::ArticleCFValueCollection called at /usr/share/perl5/RT/FM/Article_Overlay.pm line 1086.^J') called at /usr/share/perl5/RT/FM/Article_Overlay.pm line 1086
RT::FM::Article::DeleteCustomFieldValue('RT::FM::Article=HASH(0x9fdca18)', 'Field', 11, 'Content', 'TMS 5') called at /usr/share/request-tracker3/html/RTFM/Article/Edit.html line 206
HTML::Mason::Commands::__ANON__('Article-4-CustomField-9-Value', 'body^M^J^M^Jblah^M^J', 'RefersTo-4', '', 'Article-4-CustomField-11-Values', '', '4-RefersTo', '', 'Summary', 'testing', 'Article-4-CustomField-10-Values', 'Hardware', 'id', 4, 'Class', 3, 'Name', 'test', 'Article-4-CustomField-9-Value', 'body^M^J^M^Jblah^M^J', 'RefersTo-4', '', 'Article-4-CustomField-11-Values', '', '4-RefersTo', '', 'Summary', 'testing', 'Article-4-CustomField-10-Values', 'Hardware', 'id', 4, 'Class', 3, 'Name', 'test') called at /usr/share/perl5/HTML/Mason/Component.pm line 134
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x9b59a98)', 'Article-4-CustomField-9-Value', 'body^M^J^M^Jblah^M^J', 'RefersTo-4', '', 'Article-4-CustomField-11-Values', '', '4-RefersTo', '', 'Summary', 'testing', 'Article-4-CustomField-10-Values', 'Hardware', 'id', 4, 'Class', 3, 'Name', 'test', 'Article-4-CustomField-9-Value', 'body^M^J^M^Jblah^M^J', 'RefersTo-4', '', 'Article-4-CustomField-11-Values', '', '4-RefersTo', '', 'Summary', 'testing', 'Article-4-CustomField-10-Values', 'Hardware', 'id', 4, 'Class', 3, 'Name', 'test') called at /usr/share/perl5/HTML/Mason/Request.pm line 1074
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1068
HTML::Mason::Request::comp(undef, undef, 'Article-4-CustomField-9-Value', 'body^M^J^M^Jblah^M^J', 'RefersTo-4', '', 'Article-4-CustomField-11-Values', '', '4-RefersTo', '', 'Summary', 'testing', 'Article-4-CustomField-10-Values', 'Hardware', 'id', 4, 'Class', 3, 'Name', 'test', 'Article-4-CustomField-9-Value', 'body^M^J^M^Jblah^M^J', 'RefersTo-4', '', 'Article-4-CustomField-11-Values', '', '4-RefersTo', '', 'Summary', 'testing', 'Article-4-CustomField-10-Values', 'Hardware', 'id', 4, 'Class', 3, 'Name', 'test') called at /usr/share/perl5/HTML/Mason/Request.pm line 760
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x9b56880)', 'Article-4-CustomField-9-Value', 'body^M^J^M^Jblah^M^J', 'RefersTo-4', '', 'Article-4-CustomField-11-Values', '', '4-RefersTo', '', 'Summary', 'testing', 'Article-4-CustomField-10-Values', 'Hardware', 'id', 4, 'Class', 3, 'Name', 'test') called at /usr/share/request-tracker3/html/autohandler line 200
HTML::Mason::Commands::__ANON__('Article-4-CustomField-9-Value', 'body^M^J^M^Jblah^M^J', 'RefersTo-4', '', 'Article-4-CustomField-11-Values', '', '4-RefersTo', '', 'Summary', 'testing', 'Article-4-CustomField-10-Values', 'Hardware', 'id', 4, 'Class', 3, 'Name', 'test') called at /usr/share/perl5/HTML/Mason/Component.pm line 134
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x97cc78c)', 'Article-4-CustomField-9-Value', 'body^M^J^M^Jblah^M^J', 'RefersTo-4', '', 'Article-4-CustomField-11-Values', '', '4-RefersTo', '', 'Summary', 'testing', 'Article-4-CustomField-10-Values', 'Hardware', 'id', 4, 'Class', 3, 'Name', 'test') called at /usr/share/perl5/HTML/Mason/Request.pm line 1069
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1068
HTML::Mason::Request::comp(undef, undef, undef, 'Article-4-CustomField-9-Value', 'body^M^J^M^Jblah^M^J', 'RefersTo-4', '', 'Article-4-CustomField-11-Values', '', '4-RefersTo', '', 'Summary', 'testing', 'Article-4-CustomField-10-Values', 'Hardware', 'id', 4, 'Class', 3, 'Name', 'test') called at /usr/share/perl5/HTML/Mason/Request.pm line 338
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 338
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 297
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x9b56880)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 134
eval {...} at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 134
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x9b56880)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 793
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x8a0feb0)', 'Apache=SCALAR(0xa0269e4)') called at /usr/share/request-tracker3/libexec/webmux.pl line 139
eval {...} at /usr/share/request-tracker3/libexec/webmux.pl line 139
RT::Mason::handler('Apache=SCALAR(0xa0269e4)') called at /dev/null line 0

eval {...} at /dev/null line 0




More information about the rt-users mailing list