Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

#7734 closed defect (invalid)

AttributeError: 'str' object has no attribute 'rsplit'

Reported by: richard.cross@… Owned by:
Priority: normal Milestone:
Component: general Version: 0.11
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

While doing a POST operation on /admin/ticket/policy, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'actionbutton_test1': u'+', 'panel_id': u'policy', 'cat_id': u'ticket', 'add_action_test1': u'requires', '__FORM_TOKEN': u'a98b7761ee94fdd707aa14e5', 'path_info': None, 'policy': u'test1', 'new-policy': u''}

User Agent was: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1

System Information

Trac 0.11
Python 2.3.4 (#1, Dec 11 2007, 05:28:55)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-9)]
setuptools 0.6c8
SQLite 3.3.6
pysqlite 1.1.7
Genshi 0.5
Pygments 0.9
Subversion 1.1.4 (r13838)
jQuery: 1.2.3

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/Trac-0.11-py2.3.egg/trac/web/main.py", line 423, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.3/site-packages/Trac-0.11-py2.3.egg/trac/web/main.py", line 197, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.3/site-packages/Trac-0.11-py2.3.egg/trac/admin/web_ui.py", line 109, in process_request
    path_info)
  File "/usr/lib/python2.3/site-packages/TicketSubmitPolicy-0.7-py2.3.egg/ticketsubmitpolicy/ticketsubmitpolicy.py", line 371, in render_admin_panel
    args[policy][arg.rsplit(token, 1)[0]] = value
AttributeError: 'str' object has no attribute 'rsplit'

Attachments (0)

Change History (2)

comment:1 by richard.cross@…, 16 years ago

Severity: blockermajor

Steps to reproduce:

  1. Go to Submit Policy in Admin area (Web frontend)
  2. Enter name in unlabelled text box and click "Add Policy" button
  3. Click either of the "+" buttons on the next screen and the error is thrown.

Obviously, this makes the admin interface completely useless. Have downgraded the severity to major, as I realised I can add the policy directly into trac.ini instead.

comment:2 by osimons, 16 years ago

Priority: highnormal
Resolution: invalid
Severity: majornormal
Status: newclosed

The trachacks:TicketSubmitPolicyPlugin is an external plugin, and not a concern for the Trac project itself. Please read the plugin documentation, and file your ticket elsewhere as it requests.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.