[Seaside] random maddening bug - "corrupted" file upload contents
Sven Van Caekenberghe
sven at stfx.eu
Fri Dec 22 17:05:15 UTC 2017
Well, I can't repeat it, for now.
Try to make a minimal self-contained example that fails (reliably), like how I did it, you can even try to do the upload in Pharo too (see #testFormTest3).
> On 22 Dec 2017, at 18:00, Cyril Ferlicot <cyril.ferlicot at gmail.com> wrote:
>
>
> On ven. 22 déc. 2017 at 17:50, Sven Van Caekenberghe <sven at stfx.eu> wrote:
> Cyrille,
>
> I wrote a file like this:
>
> FileLocator temp / 'myzip.zip' writeStreamDo: [ :out |
> out binary; nextPutAll: #[80 75 3 4 10 0 0 0 0 0 125 83 67 73 0 0 0 0 0 0] ].
>
> Which I can read as follows:
>
> FileLocator temp / 'myzip.zip' binaryReadStreamDo: [ :in | in upToEnd ].
>
> => #[80 75 3 4 10 0 0 0 0 0 125 83 67 73 0 0 0 0 0 0]
>
> If I upload this file to http://localhost:1701/form-test-3 this works perfectly (macOS 10.13.2 Pharo #60402, Safari. Firefox & Chrome), first time and second time.
>
>
>
> Maybe you should try on a co-workers machine just to make sure it is not a local problem on your machine ?
>
> Hi Sven,
>
> It happen on Cyrille's machine, my machine, Yann's machine and our boss's machine.
>
> We first saw it on Windows and never on mac/Linux. But now we see it also on mac.
>
> I did not see it yet on Linux but we use it less for now.
>
> Also, when it happen, it tend to happen a lot afterward.
>
> Also, by random it means that we can have 1/2 week without problem, then 4 failure in 2h.
>
>
>
> Sven
>
> --
> Cyril Ferlicot
> https://ferlicot.fr
>
> http://www.synectique.eu
> 2 rue Jacques Prévert 01,
> 59650 Villeneuve d'ascq France
> <Screen Shot 2017-12-22 at 17.48.31.png>_______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
More information about the seaside
mailing list