Ticket #4304 (new defect)

Opened 1 year ago

Last modified 1 year ago

Trac crashes when trying to export pages containing attachments

Reported by: izzy Assigned to: diorgenes
Priority: normal Component: TracWikiToPdfPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

I just tried to export a selection of wiki pages from the admin interface. So I selected the pages, transferred them to the "selected pages" block, and hit the "create" button. The result was just an error stack displayed in the browser - but no PDF created. Error stack ends with:

TypeError: sequence item 0: expected string, NoneType found

(complete stack attached).

Configuration issue? Template issue, as the trace suggests (maybe connected to the problem described in #3779)? I used the latest code from SVN with the latest stable code of Trac 0.11 on Ubuntu 8.04.1 (Python 2.5.2, Genshi 0.5.1).

Attachments

traceback.txt (6.3 kB) - added by izzy on 12/18/08 12:14:19.
Error Stack
trac_debug.log (2.3 kB) - added by izzy on 12/18/08 12:25:26.
Debug messages from trac log file

Change History

12/18/08 12:14:19 changed by izzy

  • attachment traceback.txt added.

Error Stack

12/18/08 12:25:26 changed by izzy

  • attachment trac_debug.log added.

Debug messages from trac log file

12/18/08 12:27:48 changed by izzy

I just attached the debug output from the logfile, which pointed me to where the problem may be: It's obviously the attachments it gets a hick-up from. I just selected a bunch of other pages (with no attachments), and they export fine.

12/18/08 14:05:05 changed by izzy

  • summary changed from Trac crashes when trying to export multiple pages from the admin page to Trac crashes when trying to export pages containing attachments.

01/28/09 10:30:18 changed by grigi

I remember running into this issue. does the latest patch in #3493 resolve/change the issue?

It is quite an invasive patch, sorry :/

01/28/09 12:37:25 changed by izzy

Nope, it does not - sorry. Still crashes as soon as there's a page with attachments included.

03/24/09 10:55:54 changed by jan

Same problem here. It used to work fine when using the tracd daemon. So it looks to me like some sort of apache (xampp) configuration issue. Unfortunately no clue yet.

04/23/09 15:23:06 changed by grigi

Izzy, what type of attachments? Did you configure the plugin as to reflect the configuration changes required for patch #3493 to work correctly?

[wikitopdf]
tmp_dir = /tmp/wikitopdf
trac_uri = http://trac.blah.local

Tell me if that makes it work.

04/23/09 17:50:19 changed by izzy

Unfortunately I cannot check anymore, as I switched the company meanwhile and do not have access to that environment anymore. I will check as soon as time permits - but it's not that easy at the moment, since in my environment I don't use attachments in wiki pages... But maybe jan can help to figure out, as he seems to have the same problem? Our setup was Trac via mod_python in Apache, and it sounds like that is was jan is using as well.


Add/Change #4304 (Trac crashes when trying to export pages containing attachments)




Change Properties
Action