Modify

Opened 7 years ago

Closed 6 years ago

Last modified 6 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

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 (0)

Change History (3)

comment:1 Changed 6 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 6 years ago by anonymous

  • Resolution set to fixed
  • Status changed from new to closed

comment:3 Changed 6 years ago by anonymous

  • Trac Release changed from 0.10 to 0.11

Add Comment

Modify Ticket

Action
as closed The owner will remain edunne.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.