Opened 16 years ago
Closed 16 years ago
#7698 closed defect (fixed)
Can't create a new report or custom query with Trac 0.12dev
Reported by: | Owned by: | Remy Blank | |
---|---|---|---|
Priority: | normal | Milestone: | 0.12 |
Component: | ticket system | Version: | 0.12dev |
Severity: | major | Keywords: | ticket report custom query |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
To reproduce: go to View Tickets, and attempt to create any report or custom query. When I click on "Save report", the following error is displayed: No handler matched request to /report/-1
NOTE: I can edit existing reports and save the edits. I just can't create a NEW report or custom query.
Server: Red Hat Enterprise Linux 4 Python: 2.5.2 w/ mod_python 3.3.1 Database: MySQL 4.1.22 w/ MySQL-python 1.2.2 Subversion: 1.5.2 Swig: 1.3.31 Neon: 0.28.3 Genshi: 0.6dev (needed to fix a bug) Trac: 0.12dev (needed to fix an egg-cache problem)
Attachments (0)
Change History (3)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
Milestone: | → 0.12 |
---|---|
Owner: | set to |
Thanks, but that issue has already been found and fixed in r7575… Don't forget to check the log:/trunk before filing new tickets when using the latest development version!
comment:3 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I found the problem: I changed the line in the ticket/report.py match_request function from:
match = re.match(r'/report(?:/([0-9]+))?$', req.path_info)
to
match = re.match(r'/report(?:/-?([0-9]+))?$', req.path_info)
The original RE wasn't allowing the "-" part of "-1" in the URL.
Dennis