Edgewall Software

Opened 18 years ago

Last modified 18 years ago

#3073 closed defect

download in original format of source attachments fails (.bat and .py) — at Version 3

Reported by: patrickmmartin@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: wiki system Version: devel
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christian Boos)

got to

http://projects.edgewall.com/trac/attachment/ticket/1602/trac-post-commit-hook_4bat

and click on the original format link

I got an error once.

Amusingly, not the second time.

So I'm afraid all I can remember is something about "not iterable" and mime-type

Change History (3)

comment:1 by anonymous, 18 years ago

Severity: minornormal
Summary: download in original format of batch file failsdownload in original format of source attachments fails (.bat and .py)

got this error again on downloading a .py attachment, this time

http://projects.edgewall.com/trac/attachment/ticket/1602/trac-pre-commit-hook_4bat.2

and here's the traceback

Traceback (most recent call last):

File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 299, in dispatch_request

dispatcher.dispatch(req)

File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 189, in dispatch

resp = chosen_handler.process_request(req)

File "/usr/lib/python2.3/site-packages/trac/attachment.py", line 289, in process_request

self._render_view(req, attachment)

File "/usr/lib/python2.3/site-packages/trac/attachment.py", line 444, in _render_view

if 'charset=' not in mime_type:

TypeError: iterable argument required

This one seems 100% reproducible now.

Using IE 6

I went to

http://projects.edgewall.com/trac/wiki/TracOnWindows

clicked on new window for the link

http://projects.edgewall.com/trac/ticket/1602

and clicked on new window for the links for the attachments I wanted.

Then go to the original format link

comment:2 by anonymous, 18 years ago

Component: browserwiki

comment:3 by Christian Boos, 18 years ago

Description: modified (diff)
Version: 0.9.5devel

I believe this was fixed in r3225 (and this Trac is certainly running using a slightly older rev).

Note: See TracTickets for help on using tickets.