grails-cookie-session icon indicating copy to clipboard operation
grails-cookie-session copied to clipboard

Fix for withForm bug

Open exell-christopher opened this issue 9 years ago • 4 comments

exell-christopher avatar Apr 04 '15 02:04 exell-christopher

Hi Christopher,

Thanks for the fix. At first blush, I don't see a problem with the code, but I am concerned about the number of times the session gets written and when it can be written. If the session is written an excessive number of times, it impacts performance significantly. Also, if it gets written more than once into the response, then it runs the risk of changing size and overwriting other data in the response.

Can you do me a solid and checkout the repo: https://github.com/benlucchesi/test-cookie-session-plugin There are two branches of interest: springsecurity2.0 and springsecurity1.0. This project is a test suite for the cookie session plugin and these branches test it with two version of spring security.

To launch the test suite use: grails test-app --https :spock

This will launch integration and functional tests. The functional tests use the firefox selenium drive so you'll need firefox installed.

You may need to add or configure logging to detect how and when the session gets written. There isn't a test specifically for this condition, but if there is a problem, hopefully something breaks.

thanks, -ben

benlucchesi avatar Apr 04 '15 04:04 benlucchesi

Haven't had a chance to dig into testing this against the test harnesses. If someone has time, and wants to give it a shot it would be appreciated.

exell-christopher avatar May 16 '15 16:05 exell-christopher

I'll check it out soon. On May 16, 2015 9:24 AM, "exell-christopher" [email protected] wrote:

Haven't had a chance to dig into testing this against the test harnesses. If someone has time, and wants to give it a shot it would be appreciated.

— Reply to this email directly or view it on GitHub https://github.com/benlucchesi/grails-cookie-session-v2/pull/51#issuecomment-102647171 .

benlucchesi avatar May 16 '15 16:05 benlucchesi

Merged into https://github.com/double16/grails-cookie-session/tree/release/4.0.0

double16 avatar Oct 19 '17 15:10 double16