Opened 5 years ago

Last modified 5 years ago

#6039 new defect

TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

Reported by: minondoa Owned by: antonio
Priority: minor Milestone:
Component: DRM4G_Wiki Keywords: wiki, get, operation
Cc:

Description (last modified by minondoa)

I had a problem in this page. An error occurred when I clicked on the "Edit" button at the right side of the page's title.

How to Reproduce

While doing a GET operation on /wiki/DRM4G, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{u'action': u'edit', 'page': u'DRM4G', u'section': u'1'}

User agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0

System Information

System information not available

Enabled Plugins

Plugin information not available

Python Traceback

Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 562, in _dispatch_request
    dispatcher.dispatch(req)
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 269, in dispatch
    iterable=chrome.use_chunked_encoding)
  File "build/bdist.linux-x86_64/egg/trac/web/chrome.py", line 1079, in render_template
    stream |= self._filter_stream(req, method, filename, stream, data)
  File "build/bdist.linux-x86_64/egg/genshi/core.py", line 132, in __or__
    return Stream(_ensure(function(self)), serializer=self.serializer)
  File "build/bdist.linux-x86_64/egg/trac/web/chrome.py", line 1331, in inner
    data)
  File "build/bdist.linux-x86_64/egg/tracsectionedit/web_ui.py", line 78, in filter_stream
    stream = stream | Transformer('//div[@class="wikipage"]').empty().append(HTML(wiki_to_html(section_text, self.env, req)))
  File "build/bdist.linux-x86_64/egg/trac/wiki/formatter.py", line 1612, in wiki_to_html
    Formatter(env, context).format(wikitext, out, escape_newlines)
  File "build/bdist.linux-x86_64/egg/trac/wiki/formatter.py", line 1323, in format
    result = re.sub(self.wikiparser.rules, self.replace, line)
  File "/oceano/services/trac/python272/lib/python2.7/re.py", line 151, in sub
    return _compile(pattern, flags).sub(repl, string, count)
  File "build/bdist.linux-x86_64/egg/trac/wiki/formatter.py", line 1241, in replace
    replacement = self.handle_match(fullmatch)
  File "build/bdist.linux-x86_64/egg/trac/wiki/formatter.py", line 1237, in handle_match
    return internal_handler(match, fullmatch)
  File "build/bdist.linux-x86_64/egg/trac/wiki/formatter.py", line 618, in _lhref_formatter
    return self._make_lhref_link(match, fullmatch, rel, ns, target, label)
  File "build/bdist.linux-x86_64/egg/trac/wiki/formatter.py", line 648, in _make_lhref_link
    label, fullmatch)
  File "build/bdist.linux-x86_64/egg/trac/wiki/formatter.py", line 683, in _make_link
    return self._make_intertrac_link(ns, target, label) or \
  File "build/bdist.linux-x86_64/egg/trac/wiki/formatter.py", line 688, in _make_intertrac_link
    res = self.get_intertrac_url(ns, target)
  File "build/bdist.linux-x86_64/egg/trac/wiki/formatter.py", line 694, in get_intertrac_url
    url = intertrac.get(ns + '.url')
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

Change History (1)

comment:1 Changed 5 years ago by minondoa

  • Description modified (diff)
Note: See TracTickets for help on using tickets.