Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#3270 closed defect (fixed)

AttributeError: 'unicode' object has no attribute 'trim'

Reported by: anonymous Owned by: edunne
Priority: normal Component: TestCaseManagementPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


How to Reproduce

While doing a POST operation on /testmanagement/testrunbranch, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'__FORM_TOKEN': u'31cfb6e4907027397b993503',
 'pathConfiguration': u'/ScratchPad/TestProject/TestCases',
 'setbranchlocation': u'Set Branch Location'}

User Agent was: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9) Gecko/2008061015 Firefox/3.0

System Information

Trac 0.11b2
Python 2.5.1 (r251:54863, Mar 7 2008, 04:14:33)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)]
setuptools 0.6c6
MySQL server: "5.0.45-Debian_1ubuntu3.3-log", client: "5.0.45", thread-safe: 0
MySQLdb 1.2.2
Genshi 0.5dev-r847
mod_python 3.3.1
Subversion 1.4.4 (r25188)
jQuery: 1.2.3

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/Trac-0.11b2-py2.5.egg/trac/web/", line 419, in _dispatch_request
  File "/usr/lib/python2.5/site-packages/Trac-0.11b2-py2.5.egg/trac/web/", line 196, in dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.linux-i686/egg/testManagementPlugin/", line 85, in process_request
    template, data, content_type = pageProvider.process_testmanager_request( req, data )
  File "build/bdist.linux-i686/egg/testManagementPlugin/", line 28, in process_testmanager_request
    allTestcases, errors = self, req ) #fetch the testcases...
  File "build/bdist.linux-i686/egg/testManagementPlugin/", line 120, in getTestCases
    errors.append( "The component :" + currentTestcase.getComponent() + ", in the testcase : " + currentTestcase.getId() + "  in the file : " + currentTestcase.getFileName() + ", does not exist in the trac project "  )
  File "build/bdist.linux-i686/egg/testManagementPlugin/", line 264, in getComponent
    return self.component.trim()
AttributeError: 'unicode' object has no attribute 'trim'

Attachments (0)

Change History (3)

comment:1 Changed 15 years ago by edunne

closed by check in #3908

this fix has been applied in the branch. Same link on the main page will give you the fix (genshi, easy install).

comment:2 Changed 15 years ago by anonymous

Resolution: fixed
Status: newclosed

comment:3 Changed 15 years ago by anonymous

Trac Release: 0.100.11

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain edunne.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

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

Note: See TracTickets for help on using tickets.