error detected on WATemporaryFile

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

error detected on WATemporaryFile

EstebanLM
Hi,
I'm using upload streaming and I detected a bug on the solution: WAFile class>>fromChunk: aChunk

does simply:

        ^ self new readFromChunk: aChunk; yourself


but WATemporaryFile>> readFromChunk: (who must derive the chunk into a temporary file), does not exists. Instead, it exist: WATemporaryFile >>initializeFromChunk: aChunk

(which is never been called)

I tried renaming #initializeFromChunk: to #readFromChunk: (and removing #initialize send), and now seems to work.

Cheers,
Esteban_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: error detected on WATemporaryFile

Philippe Marschall
2010/12/6 Esteban Lorenzano <[hidden email]>:

> Hi,
> I'm using upload streaming and I detected a bug on the solution: WAFile class>>fromChunk: aChunk
>
> does simply:
>
>        ^ self new readFromChunk: aChunk; yourself
>
>
> but WATemporaryFile>> readFromChunk: (who must derive the chunk into a temporary file), does not exists. Instead, it exist: WATemporaryFile >>initializeFromChunk: aChunk
>
> (which is never been called)
>
> I tried renaming #initializeFromChunk: to #readFromChunk: (and removing #initialize send), and now seems to work.

Indeed

 [1] http://code.google.com/p/seaside/issues/detail?id=619

Cheers
Philippe
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside