Compensation for #6527

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

Compensation for #6527

NorbertHartl
Hi,

is there anything I can tweak to make updateUrl: happen at first
request?

This belongs to

http://bugs.squeak.org/view.php?id=6527


thanks,

Norbert

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

Re: Compensation for #6527

Lukas Renggli
> is there anything I can tweak to make updateUrl: happen at first
> request?

Yes, do a redirect in #initialRequest:

The first URL you get in the browser is the URL the user typed. There
is not other way than doing a redirect to change it.

Cheers,
Lukas

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

Re: Compensation for #6527

NorbertHartl

On Thu, 2008-01-24 at 13:59 +0100, Lukas Renggli wrote:
> > is there anything I can tweak to make updateUrl: happen at first
> > request?
>
> Yes, do a redirect in #initialRequest:
>
> The first URL you get in the browser is the URL the user typed. There
> is not other way than doing a redirect to change it.
>
Ok, I was not clear enough. I invoke my application as

/myobject/myid

but than the URL is shown as

/?_ck=y&_s=dIQiojBHCuJaWqAv&_k=gGunbwYd

and not as

/myobject/myid?_ck=y&_s=dIQiojBHCuJaWqAv&_k=gGunbwYd

If I toggle halos than I get

/myobject/myid?_s...&_k=...

I thought the bug report explained this behaviour.

Norbert

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

Re: Compensation for #6527

Lukas Renggli
> I thought the bug report explained this behaviour.

It looks like you are using a cookie-session, but your have disabled
cookies in your web-browser. There are indeed some bugs related to
cookies and updateUrl:.

Cheers,
Lukas

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

Re: Compensation for #6527

NorbertHartl

On Thu, 2008-01-24 at 14:38 +0100, Lukas Renggli wrote:
> > I thought the bug report explained this behaviour.
>
> It looks like you are using a cookie-session, but your have disabled
> cookies in your web-browser. There are indeed some bugs related to
> cookies and updateUrl:.
>

No, useSessionCookie is false and my firefox accepts cookies
until they expire. I'm using seaside 2.7. I hope this is ok.

I parse the url in initialRequest: and I want the URL to be
shown in the browser exactly as it was entered in the browser.
I understand the bug report that in general this is the case
but the first query which tries to find out about cookies
intercepts this. Every further request shows the URL I tweak
in updateUrl:. So it is neither the Url taken from the user
nor the Url taken from updateUrl:

thanks,

Norbert

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

Re: Compensation for #6527

John Thornborrow
A while back (when I originally reported the bug) the problem occurred
because of the extra redirect taking place when useSessionCookie returns
true.

>From memory, the redirects should be:

The initial request (what the user types) - /foo/bar
The request to check if the cookie is available - /?_k=12345&_c
The final request - /foo/bar/?_k=12346&_c

However, the final request does not change the url from /?_k=12345&_c.

Firefox has accept cookies enabled.

Regards,
John


Norbert Hartl wrote:

> On Thu, 2008-01-24 at 14:38 +0100, Lukas Renggli wrote:
>>> I thought the bug report explained this behaviour.
>> It looks like you are using a cookie-session, but your have disabled
>> cookies in your web-browser. There are indeed some bugs related to
>> cookies and updateUrl:.
>>
>
> No, useSessionCookie is false and my firefox accepts cookies
> until they expire. I'm using seaside 2.7. I hope this is ok.
>
> I parse the url in initialRequest: and I want the URL to be
> shown in the browser exactly as it was entered in the browser.
> I understand the bug report that in general this is the case
> but the first query which tries to find out about cookies
> intercepts this. Every further request shows the URL I tweak
> in updateUrl:. So it is neither the Url taken from the user
> nor the Url taken from updateUrl:
>
> thanks,
>
> Norbert
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>


Pinesoft Computers are registered in England, Registered number: 2914825. Registered office: 266-268 High Street, Waltham Cross, Herts, EN8 7EA



This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com

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

Re: Compensation for #6527

NorbertHartl

On Thu, 2008-01-24 at 14:08 +0000, John Thornborrow wrote:

> A while back (when I originally reported the bug) the problem occurred
> because of the extra redirect taking place when useSessionCookie returns
> true.
>
> >From memory, the redirects should be:
>
> The initial request (what the user types) - /foo/bar
> The request to check if the cookie is available - /?_k=12345&_c
> The final request - /foo/bar/?_k=12346&_c
>
> However, the final request does not change the url from /?_k=12345&_c.
>
> Firefox has accept cookies enabled.
>
Yes, is the desired behaviour of having the /foo/bar Url achievable
or not? Lukas didn't answer and I'm quite unsure about what was the
outcome of this thread :)

Norbert

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

Re: Compensation for #6527

Lukas Renggli
> Yes, is the desired behaviour of having the /foo/bar Url achievable
> or not? Lukas didn't answer and I'm quite unsure about what was the
> outcome of this thread :)

Did you try what I suggested?

initialRequest: aRequest
     super initialRequest: aRequest.
     self session redirect

I guess that should work, no?

Cheers,
Lukas

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

Re: Compensation for #6527

NorbertHartl

On Mon, 2008-01-28 at 09:34 +0100, Lukas Renggli wrote:

> > Yes, is the desired behaviour of having the /foo/bar Url achievable
> > or not? Lukas didn't answer and I'm quite unsure about what was the
> > outcome of this thread :)
>
> Did you try what I suggested?
>
> initialRequest: aRequest
>      super initialRequest: aRequest.
>      self session redirect
>
> I guess that should work, no?
>
No, it does not work. Even if I create a simple WAComponent with
only the initialRequest above it does not display the Url which
was used to access the WAComponent. Using an additional updateUrl:
doesn't work either.

Norbert

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