Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

#4036 closed defect (duplicate)

Invalid input syntax for ticket links exposed as internal error

Reported by: Eric Friedman <ebf@…> Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version: 0.9.3
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I was creating a new ticket. It referenced another ticket using the ticket:nnn syntax. Specifically, I had intended to write ticket:645. However, I accidentally typed ticket:645/. When I clicked to submit the ticket, it produced an internal error page.

Worse, when I clicked the back button on my browser my new ticket, I lost the information for the new ticket I was creating.

Here is the traceback:

Traceback (most recent call last):
 File "/usr/lib64/python2.4/site-packages/trac/web/fcgi_frontend.py",
line 40, in _handler
   dispatch_request(req.path_info, req, env)
 File "/usr/lib64/python2.4/site-packages/trac/web/main.py", line
139, in dispatch_request
   dispatcher.dispatch(req)
 File "/usr/lib64/python2.4/site-packages/trac/web/main.py", line
107, in dispatch
   resp = chosen_handler.process_request(req)
 File "/usr/lib64/python2.4/site-packages/trac/ticket/web_ui.py",
line 90, in process_request
   description = wiki_to_html(ticket['description'], self.env, req, db)
 File "/usr/lib64/python2.4/site-packages/trac/wiki/formatter.py",
line 744, in wiki_to_html
   Formatter(env, req, absurls, db).format(wikitext, out, escape_newlines)
 File "/usr/lib64/python2.4/site-packages/trac/wiki/formatter.py",
line 599, in format
   result = re.sub(self.rules, self.replace, line)
 File "/usr/lib64/python2.4/sre.py", line 142, in sub
   return _compile(pattern, 0).sub(repl, string, count)
 File "/usr/lib64/python2.4/site-packages/trac/wiki/formatter.py",
line 221, in replace
   return getattr(self, '_' + itype + '_formatter')(match, fullmatch)
 File "/usr/lib64/python2.4/site-packages/trac/wiki/formatter.py",
line 271, in _shref_formatter
   return self._make_link(ns, target, match, match)
 File "/usr/lib64/python2.4/site-packages/trac/wiki/formatter.py",
line 295, in _make_link
   util.escape(label, False))
 File "/usr/lib64/python2.4/site-packages/trac/ticket/api.py", line
149, in _format_link
   (target,))
ProgrammingError: ERROR:  invalid input syntax for integer: "645/"

SELECT summary,status FROM ticket WHERE id='645/'

Attachments (0)

Change History (1)

comment:1 by Christian Boos, 18 years ago

Resolution: duplicate
Status: newclosed

Well, with 0.10 it works ticket:645/

Duplicate of #3011 (the "first" part, not the reopened one…)

Modify Ticket

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