Modify

Opened 6 years ago

#13550 new defect

AttributeError: 'NoneType' object has no attribute 'partition'

Reported by: justdial Owned by: Roberto Longobardi
Priority: normal Component: TestManagerForTracPlugin
Severity: normal Keywords:
Cc: Trac Release:

Description

How to Reproduce

While doing a POST operation on /wiki/TC_TT384, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{u'__FORM_TOKEN': u'f77ef3ed7eff93afa3f557cf',
 u'action': u'delete',
 'page': u'TC_TT384'}

User agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36

System Information

Trac 1.0.9
Babel 0.9.4
Genshi 0.7 (with speedups)
mod_python 3.3.1
MySQL server: "5.6.42-log", client: "5.1.73", thread-safe: 1
MySQLdb 1.2.3c1
Python 2.6.6 (r266:84292, Aug 18 2016, 15:13:37)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]
pytz 2010h
setuptools 0.6
Subversion 1.6.11 (r934486)
jQuery 1.7.2
jQuery UI 1.8.21
jQuery Timepicker 1.0.1

Enabled Plugins

ExcelDownloadPlugin 0.12.0.6
TestManager 1.9.1
TracAutoComplete 0.1
TracAutocompleteUsersPlugin 0.4.3.dev0
TracCustomFieldAdmin 0.2.12
TracDynamicFields 2.2.0
TracGenericClass 1.1.7
TracGenericWorkflow 1.0.5
TracSubTicketsPlugin 0.2.0.dev20160911
TracTicketChangesets 1.0.dev0
TracWysiwyg 0.11.0.5

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/Trac-1.0.9-py2.6.egg/trac/web/main.py", line 554, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.6/site-packages/Trac-1.0.9-py2.6.egg/trac/web/main.py", line 247, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.6/site-packages/Trac-1.0.9-py2.6.egg/trac/wiki/web_ui.py", line 161, in process_request
    self._do_delete(req, versioned_page)
  File "/usr/lib/python2.6/site-packages/Trac-1.0.9-py2.6.egg/trac/wiki/web_ui.py", line 276, in _do_delete
    page.delete(version, db)
  File "/usr/lib/python2.6/site-packages/Trac-1.0.9-py2.6.egg/trac/wiki/model.py", line 118, in delete
    listener.wiki_page_deleted(self)
  File "build/bdist.linux-x86_64/egg/testmanager/wiki.py", line 116, in wiki_page_deleted
    tcat.delete(del_wiki_page=False)
  File "build/bdist.linux-x86_64/egg/tracgenericclass/model.py", line 966, in delete
    AbstractVariableFieldsObject.delete(self, db)
  File "build/bdist.linux-x86_64/egg/tracgenericclass/model.py", line 627, in delete
    @self.env.with_transaction(db)
  File "/usr/lib/python2.6/site-packages/Trac-1.0.9-py2.6.egg/trac/db/api.py", line 95, in transaction_wrapper
    fn(ldb)
  File "build/bdist.linux-x86_64/egg/tracgenericclass/model.py", line 629, in do_delete
    if not self.pre_delete(db):
  File "build/bdist.linux-x86_64/egg/testmanager/model.py", line 315, in pre_delete
    for tcat in self.list_subcatalogs(db=db):
  File "build/bdist.linux-x86_64/egg/testmanager/model.py", line 173, in list_subcatalogs
    if cat_re.match(tc['page_name'].partition(self.values['page_name']+'_')[2]) :
AttributeError: 'NoneType' object has no attribute 'partition'

Attachments (0)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Roberto Longobardi.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.