Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

#6565 closed defect (duplicate)

One ticket causes an error, all other work great

Reported by: Ivan Owned by: Jonas Borgström
Priority: normal Milestone:
Component: attachment Version: 0.10.3
Severity: normal Keywords:
Cc: ivanbessarabov@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

In my trac system i have one ticken that causes the error message below. All other tickets opens fine. Trac is working about an year, and nothing spesial was done lateley.

Oops…
Trac detected an internal error:

If you think this really should work and you can reproduce it, you should consider reporting this problem to the Trac team.

Go to http://trac.edgewall.org/ and create a new ticket where you describe the problem, how to reproduce it. Don't forget to include the Python traceback found below.

TracGuide — The Trac User and Administration Guide
Python Traceback

Traceback (most recent call last):
  File "/var/lib/python-support/python2.4/trac/web/main.py", line 387, in dispatch_request
    dispatcher.dispatch(req)
  File "/var/lib/python-support/python2.4/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/var/lib/python-support/python2.4/trac/ticket/web_ui.py", line 302, in process_request
    get_reporter_id(req, 'author'))
  File "/var/lib/python-support/python2.4/trac/ticket/web_ui.py", line 625, in _insert_ticket_data
    change['comment'] = wiki_to_html(comment, self.env, req, db)
  File "/var/lib/python-support/python2.4/trac/wiki/formatter.py", line 999, in wiki_to_html
    Formatter(env, req, absurls, db).format(wikitext, out, escape_newlines)
  File "/var/lib/python-support/python2.4/trac/wiki/formatter.py", line 822, in format
    result = re.sub(self.wiki.rules, self.replace, line)
  File "sre.py", line 142, in sub
    return _compile(pattern, 0).sub(repl, string, count)
  File "/var/lib/python-support/python2.4/trac/wiki/formatter.py", line 768, in replace
    replacement = self.handle_match(fullmatch)
  File "/var/lib/python-support/python2.4/trac/wiki/formatter.py", line 764, in handle_match
    return internal_handler(match, fullmatch)
  File "/var/lib/python-support/python2.4/trac/wiki/formatter.py", line 444, in _macro_formatter
    e)
  File "/var/lib/python-support/python2.4/trac/wiki/formatter.py", line 38, in system_message
    return html.DIV(html.STRONG(msg), text and html.PRE(text),
  File "/var/lib/python-support/python2.4/trac/util/html.py", line 432, in __call__
    return Fragment.__call__(self, *args)
  File "/var/lib/python-support/python2.4/trac/util/html.py", line 303, in __call__
    self.append(arg)
  File "/var/lib/python-support/python2.4/trac/util/html.py", line 438, in append
    Fragment.append(self, node)
  File "/var/lib/python-support/python2.4/trac/util/html.py", line 296, in append
    for child in node:
AttributeError: HTMLParseError instance has no attribute 'args'

Thank you in advance for your help!

Attachments (0)

Change History (2)

comment:1 by Ivan, 17 years ago

Cc: ivanbessarabov@… added

I have found the solution of this bug.

The problem was with the double quotes.

Here is the description of how to reproduce the bug:

  1. Adding some file to the ticket and putting double quotes in the description
  2. Writing [[Image(filename)]] in the ticket comment (filename is the name of the file uploaded on the 1 point)
  3. Pressing "submit changes"

So, after this actions the ticket will show the error message.

PS The solution is simple - you have just to remove double quotes in the description using the database editor

comment:2 by Emmanuel Blot, 17 years ago

Component: ticket systemattachment
Keywords: needinfo removed
Resolution: duplicate
Status: newclosed

Duplicate of #4388 and #3814.

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.