JSON.parse exception with multiple XBlocks in one unit
Description
Using hotfix-2015-02-23
If a unit contains more than one XBlock instance that sets the json_args argument to initialize_js, an exception is thrown by JSON.parse when it tries to parse the concatenation of those JSON strings.
Steps to reproduce:
1. Install and enable any XBlock that passes a dict to xblock.fragment.Fragment#initialize_js, such as the attached
2. Create a Unit in Studio. Add two instances of that XBlock to this Unit.
3. Reload the page. Observe that JSON.parse complaints about an unexpected '{'
4. Load this Unit in LMS. Observe that JSON.parse complains about an unexpected character
Steps to Reproduce
Current Behavior
Expected Behavior
Reason for Variance
Release Notes
User Impact Summary
Activity
Already fixed, I verified it locally.
Can we confirm and close this ticket if its fixed?
FYI
I believe this is now fixed: see https://github.com/edx/edx-platform/blob/master/common/static/js/xblock/core.js#L35
Assignee
Reporter
Labels
Reach
Impact
Platform Area
Customer
Partner Manager
URL
Contributor Name
Groups with Read-Only Access
Actual Points
Category of Work
Platform Map Area (Levels 1 & 2)
Platform Map Area (Levels 3 & 4)
Priority
