HttpResponse status (GlareUI)

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

HttpResponse status (GlareUI)

Andrés Garagiola
Hi list,

I found a  bug, i don´t know if it´s fixed is other versions, using a Flex client (GlareUI) with seaside 7.6.
The browser IE not understand the HttpResponse reply. Monitoring the http traffic i found '200' in the http response package and the client wait for 200 without simple <span class="clickable" onclick="dr4sdgryt(event,&quot;Ox&quot;)">quotations.
Change #printString by #asString on #asHttpResponse method
<span class="clickable" onclick="dr4sdgryt(event,&quot;Ox&quot;)">(Class WAResponse) the problem was resolved.
 

asHttpResponse: anHttpResponse

    | source |
    anHttpResponse statusLine: (Net.HttpResponseStatusLine code: self status printString).

    self headers associationsDo: [ :eachHeader |
        anHttpResponse addField: (Net.HeaderField
                                    readFrom: (self fieldSourceFor: eachHeader)
                                    acceptNonAsciiCharacters: true) ].

    self cookies do: [ :eachCookie || cookieValue |
        cookieValue := Net.SetCookieValue netscapeStyleName: eachCookie key value: (eachCookie value ifNil: [ '' ]).
        eachCookie expiry ifNotNil: [ cookieValue expires: eachCookie expiry asLocal ].
        eachCookie path ifNotNil: [ :path | cookieValue path: path ].
        anHttpResponse addField: (Net.SetCookieField add: (OrderedCollection with: cookieValue))].

    anHttpResponse addField: (Net.HeaderField readFrom: ('content-type: ', contentType) readStream).
    source := self contents.
    source isByteStream
        ifTrue: [ anHttpResponse body byteSource: source ]
        ifFalse: [ anHttpResponse body source: source ].
    ^anHttpResponse

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

Re: HttpResponse status (GlareUI)

Philippe Marschall
2009/9/4 Andrés Garagiola <[hidden email]>:

> Hi list,
>
> I found a  bug, i don´t know if it´s fixed is other versions, using a Flex
> client (GlareUI) with seaside 7.6.
> The browser IE not understand the HttpResponse reply. Monitoring the http
> traffic i found '200' in the http response package and the client wait for
> 200 without simple quotations.
> Change #printString by #asString on #asHttpResponse method (Class
> WAResponse) the problem was resolved.
>
> asHttpResponse: anHttpResponse
>
>     | source |
>     anHttpResponse statusLine: (Net.HttpResponseStatusLine code: self status
> printString).
>
>     self headers associationsDo: [ :eachHeader |
>         anHttpResponse addField: (Net.HeaderField
>                                     readFrom: (self fieldSourceFor:
> eachHeader)
>                                     acceptNonAsciiCharacters: true) ].
>
>     self cookies do: [ :eachCookie || cookieValue |
>         cookieValue := Net.SetCookieValue netscapeStyleName: eachCookie key
> value: (eachCookie value ifNil: [ '' ]).
>         eachCookie expiry ifNotNil: [ cookieValue expires: eachCookie expiry
> asLocal ].
>         eachCookie path ifNotNil: [ :path | cookieValue path: path ].
>         anHttpResponse addField: (Net.SetCookieField add: (OrderedCollection
> with: cookieValue))].
>
>     anHttpResponse addField: (Net.HeaderField readFrom: ('content-type: ',
> contentType) readStream).
>     source := self contents.
>     source isByteStream
>         ifTrue: [ anHttpResponse body byteSource: source ]
>         ifFalse: [ anHttpResponse body source: source ].
>     ^anHttpResponse

That's OpenTalk / VW related, right?

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

Re: HttpResponse status (GlareUI)

Andrés Garagiola
Philippe,

Is a Seaside method in VW implementation.



2009/9/5 Philippe Marschall <[hidden email]>
2009/9/4 Andrés Garagiola <[hidden email]>:
> Hi list,
>
> I found a  bug, i don´t know if it´s fixed is other versions, using a Flex
> client (GlareUI) with seaside 7.6.
> The browser IE not understand the HttpResponse reply. Monitoring the http
> traffic i found '200' in the http response package and the client wait for
> 200 without simple quotations.
> Change #printString by #asString on #asHttpResponse method (Class
> WAResponse) the problem was resolved.
>
> asHttpResponse: anHttpResponse
>
>     | source |
>     anHttpResponse statusLine: (Net.HttpResponseStatusLine code: self status
> printString).
>
>     self headers associationsDo: [ :eachHeader |
>         anHttpResponse addField: (Net.HeaderField
>                                     readFrom: (self fieldSourceFor:
> eachHeader)
>                                     acceptNonAsciiCharacters: true) ].
>
>     self cookies do: [ :eachCookie || cookieValue |
>         cookieValue := Net.SetCookieValue netscapeStyleName: eachCookie key
> value: (eachCookie value ifNil: [ '' ]).
>         eachCookie expiry ifNotNil: [ cookieValue expires: eachCookie expiry
> asLocal ].
>         eachCookie path ifNotNil: [ :path | cookieValue path: path ].
>         anHttpResponse addField: (Net.SetCookieField add: (OrderedCollection
> with: cookieValue))].
>
>     anHttpResponse addField: (Net.HeaderField readFrom: ('content-type: ',
> contentType) readStream).
>     source := self contents.
>     source isByteStream
>         ifTrue: [ anHttpResponse body byteSource: source ]
>         ifFalse: [ anHttpResponse body source: source ].
>     ^anHttpResponse

That's OpenTalk / VW related, right?

Cheers
Philippe
_______________________________________________
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: HttpResponse status (GlareUI)

Philippe Marschall
2009/9/6 Andrés Garagiola <[hidden email]>:
> Philippe,
>
> Is a Seaside method in VW implementation.

There's unfortunately nothing we can do about this. Cincom doesn't
even have an open issue tracker.

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