Modify ↓
Opened 18 years ago
Closed 18 years ago
#4353 closed defect (duplicate)
If milestone name contains url-quoted chars, such milestone can't be found in DB
Reported by: | Owned by: | Christopher Lenz | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | roadmap | Version: | 0.10 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
How to reproduce:
- Create milestone with reserved chars, for ex. "12/12/06"
- Try to click on it in Roadmap view.
Result: Trac gives error: "Internal Error Milestone 12%2F12%2F06 does not exist."
Expected: Trac should successfully retrieve milestones with such names from DB
Quick patch: model.py:
cursor = db.cursor() + import urllib + name = urllib.unquote(name) cursor.execute("SELECT name,due,completed,description " "FROM milestone WHERE name=%s", (name,)) row = cursor.fetchone()
Attachments (0)
Note:
See TracTickets
for help on using tickets.
Duplicate of #1816. You may want to install the latest stable version of 0.10-stable.