Ticket #4124 (closed defect: fixed)

Opened 3 years ago

Last modified 10 months ago

IndexError: list index out of range

Reported by: anonymous Assigned to: gruenebe
Priority: normal Component: NoteBoxPlugin
Severity: major Keywords:
Cc: Trac Release: 0.11

Description (Last modified by rjollos)

Receive the following error when using the plugin.

2008-11-19 12:35:30,159 Trac[formatter] ERROR: Macro NoteBox(tip,Lab Notifications:  No notifications at this time.) failed
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/trac/wiki/formatter.py", line 468, in _macro_formatter
    return macro.process(args, in_paragraph=True)
  File "/usr/lib/python2.5/site-packages/trac/wiki/formatter.py", line 179, in process
    text = self.processor(text)
  File "/usr/lib/python2.5/site-packages/trac/wiki/formatter.py", line 166, in _macro_processor
    text)
  File "build/bdist.linux-i686/egg/notebox/notebox.py", line 67, in expand_macro
    Formatter(formatter.env, formatter.context).format(args[1], out)
IndexError: list index out of range

Attachments

Change History

01/11/09 12:13:59 changed by luke@vzvz.org

It appears the problem is splitting the args string by ', ' rather than ',' which means if you have [[NoteBox(tip,blah blah blah)]] it does not recognize this as a 2 element list and you get the error. See line 62 of notepad.py: args = args.split(', ',1)

02/16/11 04:00:42 changed by rjollos

  • description changed.

04/12/11 02:04:39 changed by rjollos

  • status changed from new to closed.
  • resolution set to fixed.

(In [10070]) Fixes #4124: Use parse_args from Trac API to improve robustness of allowed arguments with regard to whitespace.


Add/Change #4124 (IndexError: list index out of range)




Change Properties
Action