Edgewall Software
Modify

Opened 20 years ago

Closed 19 years ago

Last modified 19 years ago

#1667 closed defect (worksforme)

Trac milestone routines break on '-' in a milestone name

Reported by: anonymous Owned by: Christopher Lenz
Priority: normal Milestone:
Component: roadmap Version: 0.8.1
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christian Boos)

Hi,

I input the following into a milestone title entry box:

release 0.3 - "sins of youth"

And now I get a nice big error screen if I try to view my 'Roadmap'.

Here's the python traceback:

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/ModPythonHandler.py", line 194, in handler
    core.dispatch_request(mpr.path_info, args, mpr, env)
  File "/usr/lib/python2.4/site-packages/trac/core.py", line 435, in dispatch_request
    module.run()
  File "/usr/lib/python2.4/site-packages/trac/Module.py", line 44, in run
    self.render()
  File "/usr/lib/python2.4/site-packages/trac/Roadmap.py", line 94, in render
    'owner')
  File "/usr/lib/python2.4/site-packages/trac/Milestone.py", line 44, in get_tickets_for_milestone
    cursor.execute(sql)
  File "/usr/lib/python2.4/site-packages/sqlite/main.py", line 244, in execute
    self.rs = self.con.db.execute(SQL)
DatabaseError: near "sins": syntax error

Attachments (0)

Change History (2)

comment:1 by Matthew Good, 19 years ago

Resolution: worksforme
Status: newclosed

Seems ok now.

comment:2 by Christian Boos, 19 years ago

Description: modified (diff)
Summary: Trac milestone routines brake on '-' in a milestone nameTrac milestone routines break on '-' in a milestone name

cleaning up summary and description

Modify Ticket

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