[Seaside] Seaside file upload oddness when file includes trailing cr

Chuck Kasmire ckasmire at yahoo.com
Wed Nov 1 16:23:37 UTC 2006


Thanks, let me know. It would be nice to know if
someone is able to reproduce this.

-Chuck

--- Jason Johnson <jbjohns at libsource.com> wrote:

> I didn't even know upload worked.  Everytime I tried
> it (like twice) it
> just hung.  If I get time I will try your test.  I'm
> at the max version
> in the 2.6 (well I was as of Monday, may be 10 revs
> back by now. :) ).
> 
> Chuck Kasmire wrote:
> > Hi William,
> >
> > With Notepad I create a text file such as: 'text
> file
> > with no training cr' and save it as 'nocr.txt'.
> >
> > Then open that file and edit it by adding a cr at
> the
> > end of the file and saving it as: 'withcr.txt'
> >
> > Starting with a clean image (seaside-2.6) that I
> just
> > downloaded from:
> > http://www.seaside.st/Download/Images/
> >
> > I start seaside: 'WAKom startOn: 8080'.
> > Open my browser on seaside and navigate to
> 'tests'>
> > 'alltests' > 'upload'.
> >
> > select 'upload', choose the file named 'nocr.txt'
> and
> > then click the 'submit' button. Everything works -
> > anchor with file name and file contents show.
> >
> > Do the same with  the file: 'withcr.txt' and
> nothing
> > happens (the little hourglass cursor shows
> seemingly
> > forever). If I choose another file (without a
> > trainling cr) and hit 'submit' then the new file
> will
> > work fine - showing the contents, etc.
> >
> > No effect on squeak.  
> >
> > The problem is not with a specific file. I can
> load
> > jpegs, text files, html files, etc. They all work
> as
> > long as there is no trailing cr.
> >
> > This is on Windows 2000 with opera 9.01. I also
> tried
> > it with Firefox and same thing.
> >
> > very strange.
> >
> > Thanks for your help,
> > -Chuck
> >
> > --- William Harford <seaside at harford.org> wrote:
> >
> >   
> >> Chuck,
> >>
> >>   I just tried it using Windows and have no
> >> problems.
> >>
> >> I am using something that mostly resembles
> >> Seaside2.6a3-pmm.71
> >>
> >> Try installing a version of seaside closer to
> 2.6a3
> >> into a fresh  
> >> image and see if you see a difference.
> >>
> >> Have you tried a variety of files ? If it is
> small
> >> can you send the  
> >> file you are having trouble with to the list and
> >> maybe we could try  
> >> and duplicate.
> >>
> >> Thanks
> >> Will
> >> On Oct 20, 2006, at 2:09 PM, William Harford
> wrote:
> >>
> >>     
> >>> Chuck,
> >>>
> >>> Works fine for me on my Mac.
> >>>
> >>> What type of file are you trying to upload?
> >>>
> >>> That page displays the contents of the file you
> >>>       
> >> are uploading so  
> >>     
> >>> displaying a non-text file might be problematic.
> >>>
> >>> What do you mean by "hang". Can you still access
> >>>       
> >> the app. Is squeak  
> >>     
> >>> taking up 100% of your CPU time ? Does it
> require
> >>>       
> >> a restart?
> >>     
> >>> Thanks
> >>> Will
> >>>
> >>> On Oct 20, 2006, at 1:59 PM, Chuck Kasmire
> wrote:
> >>>
> >>>       
> >>>> Maybe this has been addressed somewhere but it
> >>>>         
> >> seems
> >>     
> >>>> that when I try to upload a file that has a
> >>>>         
> >> trailing
> >>     
> >>>> carriage return in it, seaside 'hangs' -
> waiting
> >>>> forever for a response.
> >>>>
> >>>> I am using (on Windows):
> >>>> Squeak3.8-6555full
> >>>> Seaside2.6b1-mb.79
> >>>> Scriptaculous-lr.137
> >>>>
> >>>> I have tried this with both Opera and Firefox
> >>>>         
> >> with
> >>     
> >>>> same result.
> >>>>
> >>>> In seaside going to '[tests], 'allcanvastests',
> >>>> 'upload':
> >>>> find a file that loads properly, then edit the
> >>>>         
> >> file to
> >>     
> >>>> add a trailing carriage return. Then try to
> load
> >>>>         
> >> it.
> >>     
> >>>> Seaside seems to 'hang' endlessly waiting...
> >>>> I hope this can be reproduced.
> >>>>
> >>>> Thanks,
> >>>> Chuck Kasmire
> >>>>
> >>>>
> >>>>         
> >>
> __________________________________________________
> >>     
> >>>> Do You Yahoo!?
> >>>> Tired of spam?  Yahoo! Mail has the best spam
> >>>>         
> >> protection around
> >>     
> >>>> http://mail.yahoo.com
> >>>> _______________________________________________
> >>>> Seaside mailing list
> >>>> Seaside at lists.squeakfoundation.org
> >>>>
> >>>>         
> >
>
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >   
> >>> _______________________________________________
> >>> Seaside mailing list
> >>> Seaside at lists.squeakfoundation.org
> >>>
> >>>       
> >
>
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >   
> >> _______________________________________________
> >> Seaside mailing list
> >> Seaside at lists.squeakfoundation.org
> >>
> >>     
> >
>
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >   
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> > http://mail.yahoo.com 
> > _______________________________________________
> > Seaside mailing list
> > Seaside at lists.squeakfoundation.org
> 
=== message truncated ===



 
____________________________________________________________________________________
We have the perfect Group for you. Check out the handy changes to Yahoo! Groups 
(http://groups.yahoo.com)



More information about the Seaside mailing list