Edgewall Software
Modify

Opened 8 years ago

Closed 8 years ago

Last modified 5 years ago

#12673 closed defect (fixed)

AttributeError: 'NoneType' object has no attribute 'upper'

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Milestone: 1.0.14
Component: wiki system Version:
Severity: normal Keywords: imagemacro
Cc: Branch:
Release Notes:

Fixed AttributeError from Image macro with whitespace argument.

API Changes:
Internal Changes:

Description

2017-01-25 23:39:27,421 Trac[formatter] ERROR: Macro Image( ) failed:
Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/trac/wiki/formatter.py", line 802, in _macro_formatter
    return macro.ensure_inline(macro.process(args))
  File "build/bdist.linux-x86_64/egg/trac/wiki/formatter.py", line 379, in process
    text = self.processor(text)
  File "build/bdist.linux-x86_64/egg/trac/wiki/formatter.py", line 351, in _macro_processor
    text)
  File "build/bdist.linux-x86_64/egg/trac/wiki/macros.py", line 622, in expand_macro
    elif realm in interwikimap:
  File "build/bdist.linux-x86_64/egg/trac/wiki/interwiki.py", line 59, in __contains__
    return ns.upper() in self.interwiki_map
AttributeError: 'NoneType' object has no attribute 'upper'

Issue confirmed to exist on trunk with [[Image( )]].

Attachments (0)

Change History (1)

comment:1 by Ryan J Ollos, 8 years ago

Release Notes: modified (diff)
Resolution: fixed
Status: assignedclosed

Committed to 1.0-stable in r15397, merged to 1.2-stable in r15398, merged to trunk in r15399.

Modify Ticket

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