Modify ↓
#12674 closed defect (fixed)
TypeError: 'unicode' does not have the buffer interface
| Reported by: | Ryan J Ollos | Owned by: | Christian Boos |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.3.2 |
| Component: | roadmap | Version: | |
| Severity: | minor | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: |
Fixed regression in r15010 that resulted in |
||
| API Changes: | |||
| Internal Changes: | |||
Description
Found in the logs:
2017-01-26 09:57:35,825 Trac[main] ERROR: Internal Server Error: <RequestWithSession "GET '/roadmap?format=ics'">, referrer None
Traceback (most recent call last):
File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 630, in _dispatch_request
dispatcher.dispatch(req)
File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 252, in dispatch
resp = chosen_handler.process_request(req)
File "build/bdist.linux-x86_64/egg/trac/ticket/roadmap.py", line 511, in process_request
self._render_ics(req, milestones)
File "build/bdist.linux-x86_64/egg/trac/ticket/roadmap.py", line 598, in _render_ics
self.env.project_name + ' - ' + _("Roadmap"))
File "build/bdist.linux-x86_64/egg/trac/ticket/roadmap.py", line 578, in write_prop
buf.write(text[:75] + CRLF)
TypeError: 'unicode' does not have the buffer interface
Attachments (0)
Change History (4)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
| Milestone: | → 1.3.2 |
|---|---|
| Owner: | set to |
| Status: | new → assigned |
comment:3 by , 9 years ago
| Resolution: | → fixed |
|---|---|
| Severity: | normal → minor |
| Status: | assigned → closed |
Applied in r15402.
Note:
See TracTickets
for help on using tickets.



Looks like in r15010, an
io.BytesIO()was used where it should have been aio.StringIO().This, plus a
to_unicode()inwrite_prop(), as it seems thatio.StringIO()is quite picky…trac/ticket/roadmap.py
BytesIO()