Modify

Opened 6 years ago

Closed 6 years ago

#3271 closed defect (duplicate)

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

Reported by: varaprasad@… Owned by: edunne
Priority: normal Component: TestCaseManagementPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

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

comment:1 Changed 6 years ago by ThurnerRupert

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

of #3270

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from edunne. Next status will be 'closed'.
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.