Hi!

I have a very strange problem with HTML export in 0.3.18: Everything worked
fine for a while. But now people have uploaded lots of files as attachments
to their talks and the export breaks.

Symptoms: From inside the Pentabarf web user interface everything is fine,
creating releases works, and the schedule_export button works.

But script/html-export sooner or later chokes on an attachment:
./lib/html_export.rb:102:in `export': Error while processing 
{:controller=>"file", :language=>"de", 
:filename=>"neue-wege-fuer-metadaten_arnulf-christl_v7.pdf", 
:action=>:event_attachment, :id=>63, :only_path=>true}: Error in HTML Export 
while processing {:controller=>"file", :language=>"de", 
:filename=>"neue-wege-fuer-metadaten_arnulf-christl_v7.pdf", 
:action=>:event_attachment, :id=>63, :only_path=>true} (StandardError)
    from ./script/html-export:39

The logfile says:
Processing FileController#event_attachment (for 127.0.0.1 at 2010-03-14 
17:46:13) [GET]
  Parameters: {"action"=>"event_attachment", "language"=>"de", "id"=>"63", 
"filename"=>"neue-wege-fuer-metadaten_arnulf-christl_v7.pdf", 
"controller"=>"file"}
Completed in 180ms (View: 0 | 404 Not Found 
[http://pentabarf.org/file/event_attachment/63?filename=neue-wege-fuer-metadaten_arnulf-christl_v7.pdf&language=de]

So there is a 404 error. But the file is there and can be downloaded.

The file right before that was fine:
Processing FileController#event_attachment (for 127.0.0.1 at 2010-03-14 
17:46:12) [GET]
  Parameters: {"action"=>"event_attachment", "language"=>"de", "id"=>"95", 
"filename"=>"FOSSGIS-2010_Arnulf-Christl_Neue-Wege-fuer-Metadaten.pdf", 
"controller"=>"file"}
Completed in 582ms (View: 0 | 200 OK 
[http://pentabarf.org/file/event_attachment/95?filename=FOSSGIS-2010_Arnulf-Christl_Neue-Wege-fuer-Metadaten.pdf&language=de]

If I delete the file or make it non-public, html-export will sooner or later
choke on a different file.

I can see no difference between files that work and files that don't. Might
have something to do with size, but I don't think so.

For several hours now I have been trying to dig my way through the maze of
Pentabarf and Rails, but can't really isolate the code that returns the 404.
If I run the event_attachment method in the file_controller manually,
everything is fine again as it is when called from inside the web UI. So
it might have something to do with the ActionController::Integration::Session
that the export code uses.

Any ideas?

Jochen
-- 
Jochen Topf  joc...@remote.org  http://www.remote.org/jochen/  +49-721-388298

_______________________________________________
pentabarf mailing list
pentabarf@mail.skyhub.de
https://mail.skyhub.de/cgi-bin/mailman/listinfo/pentabarf

Reply via email to