Uploaded image for project: 'Shindig'
  1. Shindig
  2. SHINDIG-1925

Common container sample loads with a JavaScript error due to invalid JSON

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.5.0
    • 2.5.1, 2.5.0-update1
    • Javascript
    • None
    • Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0

    Description

      -----------------------------------------------
      Steps To Reproduce
      -----------------------------------------------

      (1) Start Java version of Shindig Server (2.5.0)

      (2) Open Firefox browser, enable Firebug, enable Script tab

      (3) Go to common container sample using Firefox
      => In our case: http://localhost:9082/containers/commoncontainer/
      => BUG: Script tab indicates exception: JSON.parse: expected ':' after property name in object
      => BUG: Sample gadgets drop menu fails to load in "Manage Gadgets" section.

      -----------------------------------------------
      Problem
      -----------------------------------------------

      JSON is invalid in the following file: /containers/commoncontainer/viewsMenu.json

      { "views":
      [

      {"name": "home", "value": "home", "height": "400px", "width": "450px"}

      ,

      {"name": "canvas", "value": "canvas", "height": "500px", "width": "800px"}

      ,

      {"name": "profile", "profile", "height": "500px", "width": "300px"}

      ]
      }

      -----------------------------------------------
      Fix
      -----------------------------------------------

      Add missing property key: "value":

      { "views":
      [

      {"name": "home", "value": "home", "height": "400px", "width": "450px"}

      ,

      {"name": "canvas", "value": "canvas", "height": "500px", "width": "800px"}

      ,

      {"name": "profile", "value": "profile", "height": "500px", "width": "300px"}

      ]
      }

      Attachments

        1. viewsMenu.json.patch
          0.9 kB
          Mike Pawlowski
        2. viewsMenu.json_2.patch
          0.6 kB
          Mike Pawlowski

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mpawlow Mike Pawlowski
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: