Seaside For Swazoo

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

Seaside For Swazoo

Andres Fortier-2
Hi list,
         I've just downloaded the last version of seaside for swazoo (VW
7.4.1 image). When I try to test it I get an error page:

Internal server malfunction
Message not understood: #method
You should contact the system administrator

Browsing a bit it seems that the problem is in:

convertRequest: aSwazooRequest

        "See WAKom >> convertRequest:"
        | waRequest |
        waRequest := self waRequestClass
                        method: aSwazooRequest method
                        url: aSwazooRequest uriString
                        headers: (self unwrapHeaders: aSwazooRequest)
                        fields: (self unwrapFields: aSwazooRequest)
                        cookies: (self unwrapCookies: aSwazooRequest).
        aSwazooRequest isPut ifTrue:
                [self error: 'Unsupported HTTP method PUT'.
                waRequest fields at: 'PUTData' put: String new].
        ^ waRequest.


since aSwazooRequest doesn't understand #method. I've tested with a
quick hack replacing it for 'GET', and then I get a new #dnu in
unwrapHeaders: aSwazooRequest when it sends the keysAndValuesDo: to the
headers:

unwrapHeaders: aSwazooRequest

        "Seaside needs lower case for AUTHORIZATION
        (would be good if Seaside was not case sensitive
        Swazoo supplies all upper case, WebToolkit supplies all lower case
        We adopt the WebToolkit approach"
        | waHeaders |
        waHeaders := Dictionary new.
        aSwazooRequest headers keysAndValuesDo:
                [:k :field |
                waHeaders at: k asLowercase put: field value].
        ^ waHeaders.

Am I loading something wrong? Is there any version to be consider more
stable?

Thanks in advance,
                  Andrés

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

RE: Seaside For Swazoo

Boris Popov, DeepCove Labs (SNN)
Here's what I have working here,

Swazoo 1.0
SeasideForSwazoo 2.8a1.488.0

I got both from Public Repository, hope this helps.

Cheers!

-Boris

--
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
http://tinyurl.com/r7uw4

[hidden email]

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

> -----Original Message-----
> From: [hidden email] [mailto:seaside-
> [hidden email]] On Behalf Of Andres Fortier
> Sent: Tuesday, November 20, 2007 9:11 AM
> To: Seaside List
> Subject: [Seaside] Seaside For Swazoo
>
> Hi list,
>          I've just downloaded the last version of seaside for swazoo (VW
> 7.4.1 image). When I try to test it I get an error page:
>
> Internal server malfunction
> Message not understood: #method
> You should contact the system administrator
>
> Browsing a bit it seems that the problem is in:
>
> convertRequest: aSwazooRequest
>
> "See WAKom >> convertRequest:"
> | waRequest |
> waRequest := self waRequestClass
> method: aSwazooRequest method
> url: aSwazooRequest uriString
> headers: (self unwrapHeaders: aSwazooRequest)
> fields: (self unwrapFields: aSwazooRequest)
> cookies: (self unwrapCookies: aSwazooRequest).
> aSwazooRequest isPut ifTrue:
> [self error: 'Unsupported HTTP method PUT'.
> waRequest fields at: 'PUTData' put: String new].
> ^ waRequest.
>
>
> since aSwazooRequest doesn't understand #method. I've tested with a
> quick hack replacing it for 'GET', and then I get a new #dnu in
> unwrapHeaders: aSwazooRequest when it sends the keysAndValuesDo: to the
> headers:
>
> unwrapHeaders: aSwazooRequest
>
> "Seaside needs lower case for AUTHORIZATION
> (would be good if Seaside was not case sensitive
> Swazoo supplies all upper case, WebToolkit supplies all lower case
> We adopt the WebToolkit approach"
> | waHeaders |
> waHeaders := Dictionary new.
> aSwazooRequest headers keysAndValuesDo:
> [:k :field |
> waHeaders at: k asLowercase put: field value].
> ^ waHeaders.
>
> Am I loading something wrong? Is there any version to be consider more
> stable?
>
> Thanks in advance,
>          Andrés
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside For Swazoo

Andres Fortier-2
Thanks Boris, works like a charm  :)

Andrés

Boris Popov escribió:

> Here's what I have working here,
>
> Swazoo 1.0
> SeasideForSwazoo 2.8a1.488.0
>
> I got both from Public Repository, hope this helps.
>
> Cheers!
>
> -Boris
>
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside