[
https://issues.apache.org/jira/browse/SHINDIG-1925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13741279#comment-13741279
]
Mike Pawlowski commented on SHINDIG-1925:
-----------------------------------------
Hi Ryan,
To create the patch, I did the following:
(1) Opened my Eclipse Shindig workspace (Eclipse Java EE for Web Developers,
Version: Kepler Release, Build id: 20130614-0229).
(2) Right-clicked on the "viewsMenu.json" file.
(3) Selected "Team > Create Patch..." to open the "Create Patch" wizard.
(4) Selected "In the file system" and specified a path.
(5) Clicked the "Finish" button.
I think the problem may be related to me creating the patch based off of the
Shindig 2.5.0 Beta 6 stream?
I see that the source version is revision 1511414.
I created a new patch based off of the Shindig 2.5.0 stream this time (not the
latest in the head or trunk stream).
The source version is revision 1513256.
Hopefully, this patch will apply cleanly now.
> Common container sample loads with a JavaScript error due to invalid JSON
> -------------------------------------------------------------------------
>
> Key: SHINDIG-1925
> URL: https://issues.apache.org/jira/browse/SHINDIG-1925
> Project: Shindig
> Issue Type: Bug
> Components: Javascript
> Affects Versions: 2.5.0
> Environment: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0)
> Gecko/20100101 Firefox/22.0
> Reporter: Mike Pawlowski
> Priority: Minor
> Fix For: 2.5.1, 2.5.0-update1
>
> Attachments: viewsMenu.json.patch
>
>
> -----------------------------------------------
> 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"}
> ]
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira