Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

#5930 closed defect (fixed)

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

Reported by: sebastian.roth@… Owned by: Tim Hatch
Priority: normal Milestone: 0.11
Component: report system Version: devel
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal 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 (0)

Change History (2)

comment:1 by Tim Hatch, 17 years ago

Component: generalreport system
Milestone: 0.11
Owner: changed from Jonas Borgström to Tim Hatch
Status: newassigned

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

comment:2 by Tim Hatch, 17 years ago

Resolution: fixed
Status: assignedclosed

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?

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Tim Hatch.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Tim Hatch 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.