Wookie
  1. Wookie
  2. WOOKIE-151

Numeric keys for preferences result in Parse Error in Safari

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.1
    • Component/s: None
    • Labels:
      None
    • Environment:
      Safari 5 Mac OS X

      Description

      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!

        Activity

        Scott Wilson made changes -
        Status Closed [ 6 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Scott Wilson made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Scott Wilson made changes -
        Fix Version/s 0.9.1 [ 12315418 ]
        Raido Kuli made changes -
        Status Ready To Review [ 10006 ] Open [ 1 ]
        Raido Kuli made changes -
        Field Original Value New Value
        Assignee Raido Kuli [ raido357 ]
        Scott Wilson created issue -

          People

          • Assignee:
            Raido Kuli
            Reporter:
            Scott Wilson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development