Edgewall Software

Opened 7 years ago

Closed 7 years ago

Last modified 5 years ago

#12673 closed defect (fixed)

AttributeError: 'NoneType' object has no attribute 'upper' — at Version 1

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( )]].

Change History (1)

comment:1 by Ryan J Ollos, 7 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.

Note: See TracTickets for help on using tickets.