uiOptions Bug...
Li, Cindy
cli at ocad.ca
Tue Nov 29 19:56:30 UTC 2011
Good finding, Johnny. Yes, I produced the same behaviour as you did with Colin's computer.
After digging a bit into the code, seems the bug is a result of our improper default value for the cookie "expiry" attribute, which is blank by default:
https://github.com/fluid-project/infusion/blob/master/src/webapp/components/uiOptions/js/Store.js#L60
According to http://www.tutorialspoint.com/javascript/javascript_cookies.htm, which says,
Expires : The date the cookie will expire. If this is blank, the cookie will expire when the visitor quits the browser.
So, a blank default apparently is not enough if what we meant is to keep the user-selected settings forever. We probably should consider to have a default expiry date of 50 years from now. :-P
I've filed a jira for it - http://issues.fluidproject.org/browse/FLUID-4562
Thanks, Jonny.
Cindy
On 2011-11-29, at 2:10 PM, Johnny Taylor wrote:
Hey,
So the word on the street is I tripped over a rather significant bug in uiOptions. On my site <http://abledaccess.com<http://abledaccess.com/>> when I change the display setting via uiOptions in the latest versions of Safari, Chrome, Opera and IE, then quit each browser, my settings I set have been reset. Same goes with your demo across said browsers, as well. I saw on Colin's computer this behaviour doesn't happen in Firefox, but it happens on my machine in Firefox, as well. But the reset did happen in Safari, Chrome and Opera on his computer.
Johnny
_______________________________________________________
fluid-work mailing list - fluid-work at fluidproject.org<mailto:fluid-work at fluidproject.org>
To unsubscribe, change settings or access archives,
see http://lists.idrc.ocad.ca/mailman/listinfo/fluid-work
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.idrc.ocad.ca/pipermail/fluid-work/attachments/20111129/af707e16/attachment.htm>
More information about the fluid-work
mailing list