Edgewall Software
Modify

Ticket #5930 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

TypeError: from_string() takes exactly 3 non-keyword arguments (4 given)

Reported by: sebastian.roth@… Owned by: thatch
Priority: normal Milestone: 0.11
Component: report system Version: devel
Severity: normal Keywords:
Cc:
Release Notes:
API Changes:

Description

How to Reproduce

While doing a GET operation on /report/10, Trac issued an internal error.

I tried with

query:component=My Component

Please notice the whitespace.

Request parameters:

{'id': u'10'}

System Information

Trac 0.11dev-r5963
Python 2.4.4 (#1, Apr 5 2007, 18:41:00)
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)]
setuptools 0.6c6
SQLite 3.3.8
pysqlite 2.3.2
Genshi 0.4.3
Pygments 0.5.1
Subversion 1.4.2 (r22196)

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r5963-py2.4.egg/trac/web/main.py", line 381, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r5963-py2.4.egg/trac/web/main.py", line 191, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r5963-py2.4.egg/trac/ticket/report.py", line 95, in process_request
    template, data, content_type = self._render_view(req, db, id)
  File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r5963-py2.4.egg/trac/ticket/report.py", line 260, in _render_view
    query = Query.from_string(self.env, req, query[6:], report=id)
TypeError: from_string() takes exactly 3 non-keyword arguments (4 given)


Attachments

Change History

comment:1 Changed 4 years ago by thatch

  • Component changed from general to report system
  • Milestone set to 0.11
  • Owner changed from jonas to thatch
  • Status changed from new to assigned

Yep, that's a bug. I'm working on it.

comment:2 Changed 4 years ago by thatch

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

Bugfix committed as r5971. Eli, for testing:

INSERT INTO report (title, query, description) VALUES ("Saved Query", "query:version=1.0", "");
  1. Navigate to /report
  2. Visit "Saved Query"
  3. Verify we didn't get an error

Can you also throw in addition of a 1.0 ticket and a 2.0 ticket as part of the demo env, then see that only the correct one shows up in the report?

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from thatch. Next status will be 'closed'
Author


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

 
Note: See TracTickets for help on using tickets.