Edgewall Software
Modify

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#12686 closed defect (fixed)

TypeError: expected string or buffer

Reported by: Ryan J Ollos Owned by: Christian Boos
Priority: normal Milestone: 1.3.2
Component: wiki system Version: 1.3dev
Severity: normal Keywords: wikiprocessor
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

From the logs:

[pid 31083 140352200652544] 2017-02-09 09:55:54,111 Trac[formatter] ERROR: Processor html failed:
Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/trac/wiki/formatter.py", line 1189, in _exec_processor
    return processor.process(text)
  File "build/bdist.linux-x86_64/egg/trac/wiki/formatter.py", line 371, in process
    text = self.processor(text)
  File "build/bdist.linux-x86_64/egg/trac/wiki/formatter.py", line 225, in _html_processor
    return self._sanitizer.sanitize(text)
  File "build/bdist.linux-x86_64/egg/trac/util/html.py", line 637, in sanitize
    transform.feed(html)
  File "/usr/lib/python2.7/HTMLParser.py", line 117, in feed
    self.goahead(0)
  File "/usr/lib/python2.7/HTMLParser.py", line 161, in goahead
    k = self.parse_starttag(i)
  File "/usr/lib/python2.7/HTMLParser.py", line 327, in parse_starttag
    self.handle_starttag(tag, attrs)
  File "build/bdist.linux-x86_64/egg/trac/util/html.py", line 974, in handle_starttag
    self._handle_start(tag, attrs, '')
  File "build/bdist.linux-x86_64/egg/trac/util/html.py", line 964, in _handle_start
    new_attrs = self.sanitizer.sanitize_attrs(dict(attrs))
  File "build/bdist.linux-x86_64/egg/trac/util/html.py", line 753, in sanitize_attrs
    value = stripentities(value)
  File "build/bdist.linux-x86_64/egg/trac/util/html.py", line 189, in stripentities
    return Markup(_STRIPENTITIES_RE.sub(_replace_entity, text))
[pid 31083 140352200652544] 2017-02-09 09:55:54,111 Trac[formatter] ERROR: Processor html failed:
Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/trac/wiki/formatter.py", line 1189, in _exec_processor
    return processor.process(text)
  File "build/bdist.linux-x86_64/egg/trac/wiki/formatter.py", line 371, in process
    text = self.processor(text)
  File "build/bdist.linux-x86_64/egg/trac/wiki/formatter.py", line 225, in _html_processor
    return self._sanitizer.sanitize(text)
  File "build/bdist.linux-x86_64/egg/trac/util/html.py", line 637, in sanitize
    transform.feed(html)
  File "/usr/lib/python2.7/HTMLParser.py", line 117, in feed
    self.goahead(0)
  File "/usr/lib/python2.7/HTMLParser.py", line 161, in goahead
    k = self.parse_starttag(i)
  File "/usr/lib/python2.7/HTMLParser.py", line 327, in parse_starttag
    self.handle_starttag(tag, attrs)
  File "build/bdist.linux-x86_64/egg/trac/util/html.py", line 974, in handle_starttag
    self._handle_start(tag, attrs, '')
  File "build/bdist.linux-x86_64/egg/trac/util/html.py", line 964, in _handle_start
    new_attrs = self.sanitizer.sanitize_attrs(dict(attrs))
  File "build/bdist.linux-x86_64/egg/trac/util/html.py", line 753, in sanitize_attrs
    value = stripentities(value)
  File "build/bdist.linux-x86_64/egg/trac/util/html.py", line 189, in stripentities
    return Markup(_STRIPENTITIES_RE.sub(_replace_entity, text))
TypeError: expected string or buffer

Attachments (0)

Change History (4)

comment:1 by Christian Boos, 5 years ago

Ah, found it! TracDev/Proposals/MultipleProject#Focalproject

<select>
  <option> </option>
  <option value="1231">Family A</option>
  <option value="1243">┗╴product a</option>
  <option value="1245">┗╴product b</option>
  <option value="1236" selected>Family B</option>
  <option value="1255">┗╴product c</option>
  <option value="1277">┗╴product d</option>
  <option value="231">Tools</option>
  <option value="233">3rd Party</option>
</select>

It's the unicode characters.

comment:2 by Christian Boos, 5 years ago

Milestone: 1.3.2

comment:3 by Christian Boos, 5 years ago

Resolution: fixed
Status: newclosed
Version: 1.3dev

Fixed in r15531.

comment:4 by Christian Boos, 5 years ago

Owner: set to Christian Boos

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.