Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

Last modified 17 years ago

#5162 closed defect (worksforme)

Wiki/Blog crash after adding a blog

Reported by: ralf.peine@… Owned by: Christian Boos
Priority: normal Milestone:
Component: wiki system Version:
Severity: major Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Emmanuel Blot)

I added a Blog entry with parentesis in the header ()

Python Traceback

Traceback (most recent call last):
  File "/var/ontrac/projects/MyProject/trac/lib/python2.3/site-packages/trac/web/main.py", line 387, in dispatch_request
    dispatcher.dispatch(req)
  File "/var/ontrac/projects/MyProject/trac/lib/python2.3/site-packages/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/var/ontrac/projects/MyProject/trac/lib/python2.3/site-packages/trac/wiki/web_ui.py", line 135, in process_request
    self._render_view(req, db, page)
  File "/var/ontrac/projects/MyProject/trac/lib/python2.3/site-packages/trac/wiki/web_ui.py", line 443, in _render_view
    req.hdf['wiki'] = {
  File "/var/ontrac/projects/MyProject/trac/lib/python2.3/site-packages/trac/wiki/formatter.py", line 999, in wiki_to_html
    Formatter(env, req, absurls, db).format(wikitext, out, escape_newlines)
  File "/var/ontrac/projects/MyProject/trac/lib/python2.3/site-packages/trac/wiki/formatter.py", line 822, in format
    result = re.sub(self.wiki.rules, self.replace, line)
  File "/var/ontrac/projects/MyProject/trac/lib/python2.3/site-packages/trac/wiki/api.py", line 168, in _get_rules
    self._prepare_rules()
  File "/var/ontrac/projects/MyProject/trac/lib/python2.3/site-packages/trac/wiki/api.py", line 198, in _prepare_rules
    rules = re.compile('(?:' + '|'.join(syntax) + ')')
  File "/usr/lib/python2.3/sre.py", line 179, in compile
    return _compile(pattern, flags)
  File "/usr/lib/python2.3/sre.py", line 230, in _compile
    raise error, v # invalid expression
error: redefinition of group name u'it_report' as group 25; was group 22

Attachments (0)

Change History (7)

comment:1 by Emmanuel Blot, 18 years ago

Description: modified (diff)
Keywords: needinfo added
Severity: blockermajor

Blog entry? Are you using a macro or a plugin? Please report issues w/ macros and plugins to theire respective maintainer.

You also forgot to report which version of Trac you're using: this is a very important info.

comment:2 by ralf.peine@…, 18 years ago

The whole trac.db seems to be corrupt. Also admin isn't reachable by web browser. Is there any tool to check / repair the database?

in reply to:  2 comment:3 by Emmanuel Blot, 18 years ago

Replying to ralf.peine@siemens.com:

The whole trac.db seems to be corrupt. Also admin isn't reachable by web browser. Is there any tool to check / repair the database?

From the log message, it rather looks like an invalid regular expression definition rather than a problem with the database.

comment:4 by Matthew Good, 18 years ago

Please try removing the blog plugin and make sure that the other parts of the system work without it. If that fixes the problem then the issue is in the plugin and needs to be reported to the plugin maintainer.

comment:5 by nicklien121414@…, 18 years ago

FYI (now it works well for me; just to tell u some situation..)

I added 2 WIKI entries with parentesis in the title, as follows: )bbbb (bbbb and the same problem happend, when accessing any wiki entry or any wiki entry list the following errormsg is shown (and it can't show the content of the entry or the list; wiki search result also yield the similiar result — )(AND after deleting the 2 wiki entries which cause problem, the trac system works fine)

Python Traceback

Traceback (most recent call last):

File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 387, in dispatch_request

dispatcher.dispatch(req)

File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 237, in dispatch

resp = chosen_handler.process_request(req)

File "build/bdist.linux-i686/egg/tractags/web_ui.py", line 64, in process_request File "/usr/lib/python2.4/site-packages/trac/wiki/web_ui.py", line 135, in process_request

self._render_view(req, db, page)

File "/usr/lib/python2.4/site-packages/trac/wiki/web_ui.py", line 443, in _render_view

req.hdfwiki = {

File "/usr/lib/python2.4/site-packages/trac/wiki/formatter.py", line 999, in wiki_to_html

Formatter(env, req, absurls, db).format(wikitext, out, escape_newlines)

File "/usr/lib/python2.4/site-packages/trac/wiki/formatter.py", line 822, in format

result = re.sub(self.wiki.rules, self.replace, line)

File "/usr/lib/python2.4/site-packages/trac/wiki/api.py", line 168, in _get_rules

self._prepare_rules()

File "/usr/lib/python2.4/site-packages/trac/wiki/api.py", line 198, in _prepare_rules

rules = re.compile('(?:' + '|'.join(syntax) + ')')

File "sre.py", line 180, in compile

return _compile(pattern, flags)

File "sre.py", line 227, in _compile

raise error, v # invalid expression

error: nothing to repeat

in reply to:  5 comment:6 by Christian Boos, 18 years ago

Keywords: needinfo removed
Resolution: worksforme
Status: newclosed

Replying to nicklien121414@gmail.com:

… I added 2 WIKI entries with parentesis in the title, as follows: )bbbb (bbbb

It's probably because of the TH:AutoWikifyPlugin, and it looks like this problem has been fixed in [th 1925].

comment:7 by nicklien121414@…, 18 years ago

to cboos,

thx!

Modify Ticket

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