Ticket #3270 (closed defect: fixed)

Opened 4 months ago

Last modified 2 months ago

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

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

Description

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/main.py", line 419, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.5/site-packages/Trac-0.11b2-py2.5.egg/trac/web/main.py", line 196, in dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.linux-i686/egg/testManagementPlugin/testManager.py", line 85, in process_request
    template, data, content_type = pageProvider.process_testmanager_request( req, data )
  File "build/bdist.linux-i686/egg/testManagementPlugin/pathManager.py", line 28, in process_testmanager_request
    allTestcases, errors = self.properties.getTestCases( self, req ) #fetch the testcases...
  File "build/bdist.linux-i686/egg/testManagementPlugin/properties.py", 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/properties.py", line 264, in getComponent
    return self.component.trim()
AttributeError: 'unicode' object has no attribute 'trim'

Attachments

Change History

06/26/08 16:19:19 changed 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).

07/31/08 18:55:01 changed by anonymous

  • status changed from new to closed.
  • resolution set to fixed.

07/31/08 18:55:07 changed by anonymous

  • release changed from 0.10 to 0.11.

Add/Change #3270 (AttributeError: 'unicode' object has no attribute 'trim')




Change Properties
Action