You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wookie.apache.org by "Raido Kuli (JIRA)" <ji...@apache.org> on 2011/02/10 11:29:57 UTC
[jira] Issue Comment Edited: (WOOKIE-151) Numeric keys for
preferences result in Parse Error in Safari
[ https://issues.apache.org/jira/browse/WOOKIE-151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12992977#comment-12992977 ]
Raido Kuli edited comment on WOOKIE-151 at 2/10/11 10:29 AM:
-------------------------------------------------------------
I've done some testing today, using numeric preference key's will cause DWR parse error.
Modifying wookie-wrapper to use array-s works fine, but now DWR is causing problems.
Used modified weather widget to test:
changed preference key "city" to numeric value = fail.
changed it to "a1234" for example, works.
Produced errors:
Safari - parse error
Chrome - unexpected number
IE / Firefox = Unexpected ;
was (Author: raido357):
I've done some testing today, using numeric preference key's will cause DWR parse error.
Modifying wookie-wrapper to use array-s works fine, but now DWR is causing problems.
Used modified weather widget to test:
changed preference key "city" to numeric value = fail.
changed it to "a1234" for example, works.
> Numeric keys for preferences result in Parse Error in Safari
> ------------------------------------------------------------
>
> Key: WOOKIE-151
> URL: https://issues.apache.org/jira/browse/WOOKIE-151
> Project: Wookie
> Issue Type: Bug
> Environment: Safari 5 Mac OS X
> Reporter: Scott Wilson
> Assignee: Raido Kuli
> Fix For: 0.9.1
>
>
> If you create a widget that uses numeric keys for preference values, this can cause a Parse Error deeper in Wookie (most likely, in DWR) even if the values are cast to a String.
> To replicate, add this line to any widget:
> widget.preferences.setItem("12345","67890");
> Also:
> widget.preferences.setItem("12345a","67890");
> ...will fail, but not:
> widget.preferences.setItem("a12345","67890");
> I suspect this is something either in the wrapper.js or DWR engine.js. Unfortunately the debug tools in Safari aren't sufficient to trace it properly.
> As a workaround - just don't use numbers for preference keys!
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira