SeasideSt / Seaside

The framework for developing sophisticated web applications in Smalltalk.
MIT License
519 stars 71 forks source link

Exception when using CookieProtectionFilter #1312

Closed obi068 closed 2 years ago

obi068 commented 2 years ago

We get an exception "a MessageNotUnderstood occurred (error 2010), a UndefinedObject does not understand #'on:'" (in GemStone 3.6.1) if we are using the WASessionCookieProtectionFilter for an application and try to open the URL in a different browser.

image

jbrichau commented 2 years ago

Hi @obi068 I have just verified this with the /examples/sessionprotected-counter in a fresh install of Seaside master (commit 9774169478314de61db0411398ffd0d5d4f1073c) and it works fine.

Could you see if the example application works in your case?

The only possibility I see that is wrong in your application is that the handler you use does not have the responseGenerator preference set. This is the only path I see where the responseGenerator in WARequestContext can be nil.

You can also check this value in the web dev tools in /configure for your application when expanding the 'General' settings.

obi068 commented 2 years ago

The example is working, I can't figure it out why my app is not working. responseGenerator becomes nil at some point.

jbrichau commented 2 years ago

Hi @obi068 Did you check the value via /configure for the responseGenerator ?