Hi Have just installed 10.2 and tried a very very simple 1 page wiki Page just says "hello" type stuff When I hit either the html or textile export links the instiki console shows a huge amount of what I assume is a binary dump of some kind but represented as ascii so it looks like a huge mess. And I get no download of course. Strange thing is that instiki has not actually crashed as if I hit the home page link etc. then it carries on showing my page in browser - just wont export anything at all. Does anyone else have this problem with 10.2 ? is there a fix ? Oh yes, system is win2k with all latest gems installed. Regards Huw
Huw wrote:>Hi > >Have just installed 10.2 and tried a very very simple 1 page wiki > >Page just says "hello" type stuff > >When I hit either the html or textile export links the instiki console >shows a huge amount of what I assume is a binary dump of some kind but >represented as ascii so it looks like a huge mess. > >And I get no download of course. > >Strange thing is that instiki has not actually crashed as if I hit the >home page link etc. then it carries on showing my page in browser - >just wont export anything at all. > >Does anyone else have this problem with 10.2 ? is there a fix ? > >Oh yes, system is win2k with all latest gems installed. > >Regards > >Huw > >_______________________________________________ >Instiki-users mailing list >Instiki-users@rubyforge.org >http://rubyforge.org/mailman/listinfo/instiki-users > > >I did an export on my Windows XP Instiki. I dont'' remember exactly what happened (too chicken to try again), but I remember it was bad. I seem to recall the browser locking up and a bunch of junk in the console. I think I did had to stop the app (ruby) from task manager ... not sure. But when I restarted everything was okay and it had created the zip file of html documents.
Hi, On 8/11/05, Huw <huw.nichols@gmail.com> wrote:> When I hit either the html or textile export links the instiki console > shows a huge amount of what I assume is a binary dump of some kind but > represented as ascii so it looks like a huge mess. > > And I get no download of course. > > Strange thing is that instiki has not actually crashed as if I hit the > home page link etc. then it carries on showing my page in browser - > just wont export anything at all. > > Does anyone else have this problem with 10.2 ? is there a fix ? > > Oh yes, system is win2k with all latest gems installed.I think the problem may be in a change to #send_file between rails 0.11 and 0.13. You should add the :stream => false option (patch below). It has been pointed out to me (for Pimki) by Christoph Singer just today :-). Cheers, Assaph --- application.rb~ 2005-08-02 08:01:26.375000000 +1000 +++ application.rb 2005-08-12 00:06:10.750000000 +1000 @@ -67,6 +67,7 @@ def send_file(file, options = {}) options[:type] ||= (FILE_TYPES[File.extname(file)] || ''application/octet-stream'') + options[:stream] = false super(file, options) end
Hi, Thanks for the patch, I am off to try it now Regards Huw> Cheers, > Assaph > > --- application.rb~ 2005-08-02 08:01:26.375000000 +1000 > +++ application.rb 2005-08-12 00:06:10.750000000 +1000 > @@ -67,6 +67,7 @@ > > def send_file(file, options = {}) > options[:type] ||= (FILE_TYPES[File.extname(file)] || > ''application/octet-stream'') > + options[:stream] = false > super(file, options) > end >
Assaph Mehr wrote:>I think the problem may be in a change to #send_file between rails >0.11 and 0.13. >Gosh... I was just about to sit down and figure it out. And I suspected that it would be Rails upgrade, too. Thanks, Assaf! There is one other thing to do, namely add a test to test/watir/e2e.rb. It''s one of those things controller tests just don''t catch. Alex
All, I have eventually got round to trying the patch mentioned and thought I would confirm that it does indeed fix the problem. Thanks to all Huw On 8/13/05, Alex Verhovsky <alex@verk.info> wrote:> Assaph Mehr wrote: > > >I think the problem may be in a change to #send_file between rails > >0.11 and 0.13. > > > > Gosh... I was just about to sit down and figure it out. And I suspected > that it would be Rails upgrade, too. > Thanks, Assaf! > > There is one other thing to do, namely add a test to test/watir/e2e.rb. > It''s one of those things controller tests just don''t catch. > > Alex > >