id summary reporter owner description type status priority component severity resolution keywords cc release 11954 AttributeError: 'Mock' object has no attribute 'args' bobhy Steffen Hoffmann "==== How to Reproduce ==== 1. Browse to Trac site 1. do **not** log in with a user name 1. Click NewTicket 1. In New Ticket 1. fill in dummy title 1. click Create Ticket Expect:: ticket created with Reporter Anonymous Observe:: this crash. ==== Syndrome ==== While doing a POST operation on `/newticket`, Trac issued an internal error. ''(please provide additional details here)'' Request parameters: {{{ {'__FORM_TOKEN': u'63b3923f54d29c902a8dcec8', 'author': u'anonymous', 'field_billable': u'1', 'field_blockedby': u'', 'field_blocking': u'', 'field_cc': u'', 'field_checkbox_billable': u'1', 'field_component': u'sw/Trac', 'field_description': u'', 'field_estimatedhours': u'0', 'field_hours': u'0', 'field_keywords': u'', 'field_milestone': u'', 'field_owner': u'< default >', 'field_parents': u'', 'field_priority': u'major', 'field_reporter': u'anonymous', 'field_summary': u'foo ticket', 'field_type': u'defect', 'submit': u'Create ticket'} }}} User agent: `Mozilla/5#0 #Windows NT 6#1; WOW64; Trident/7#0; SLCC2; #NET CLR 2#0#50727; #NET CLR 3#5#30729; #NET CLR 3#0#30729; Media Center PC 6#0; #NET4#0C; #NET4#0E; rv:11#0# like Gecko` ==== System Information ==== || '''`Trac`''' || `1#0#2beta1` || || '''`Genshi`''' || `0#7 #without speedups#` || || '''`GIT`''' || `1#8#3#msysgit#0` || || '''`pysqlite`''' || `2#6#0` || || '''`Python`''' || `2#7#8 #default, Jun 30 2014, 16:08:48# #MSC v#1500 64 bit #AMD64##` || || '''`setuptools`''' || `3#6` || || '''`SQLite`''' || `3#6#21` || || '''`jQuery`''' || `1#7#2` || || '''`jQuery UI`''' || `1#8#21` || || '''`jQuery Timepicker`''' || `1#0#1` || ==== Enabled Plugins ==== || '''`BackLinksMacro`''' || `7#0dev-r13928` || || '''`TicketImport`''' || `0#8#3` || || '''`timingandestimationplugin`''' || `1#3#7` || || '''`TracAccountManager`''' || `0#4#4` || || '''`TracIncludeMacro`''' || `3#0#0dev-r13471` || || '''`TracMasterTickets`''' || `3#0#5dev-r13684` || || '''`TracSubTicketsPlugin`''' || `0#2#0#dev-20140826` || || '''`TracTags`''' || `0#8dev-r14041` || || '''`TracTocMacro`''' || `11#0#0#4-r13602` || ==== Python Traceback ==== {{{ Traceback #most recent call last#: File ""f:\home\bob\src\tracstuff\trac\trac\web\main#py"", line 506, in _dispatch_request dispatcher#dispatch#req# File ""f:\home\bob\src\tracstuff\trac\trac\web\main#py"", line 221, in dispatch resp = chosen_handler#process_request#req# File ""f:\home\bob\src\tracstuff\trac\trac\ticket\web_ui#py"", line 180, in process_request return self#_process_newticket_request#req# File ""f:\home\bob\src\tracstuff\trac\trac\ticket\web_ui#py"", line 465, in _process_newticket_request self#_do_create#req, ticket# # #redirected if successful# File ""f:\home\bob\src\tracstuff\trac\trac\ticket\web_ui#py"", line 1297, in _do_create ticket#insert## File ""f:\home\bob\src\tracstuff\trac\trac\ticket\model#py"", line 256, in insert listener#ticket_created#self# File ""f:\home\bob\src\tracstuff\tagsplugin\tractags\ticket#py"", line 182, in ticket_created ticket, None, ticket#'time'## File ""f:\home\bob\src\tracstuff\tagsplugin\tractags\ticket#py"", line 143, in set_resource_tags self##set_resource_tags#req, resource, tags# File ""f:\home\bob\src\tracstuff\tagsplugin\tractags\api#py"", line 312, in set_resource_tags tag_resource#self#env, resource, author=self#_get_author#req#, File ""f:\home\bob\src\tracstuff\tagsplugin\tractags\api#py"", line 334, in _get_author author = get_reporter_id#req, 'author'# File ""f:\home\bob\src\tracstuff\trac\trac\util\__init__#py"", line 58, in get_reporter_id r = req.args.get#arg_name# AttributeError: 'Mock' object has no attribute 'args' }}}" defect closed normal TagsPlugin normal fixed Ryan J Ollos Jun Omae 1.0