|
I was playing with this and was able to reproduce this 100% of the time with 100% valid json according to yajl and other json verifiers. Credit goes to StormSilver for the failjson. Step 1, login, edit node, add networking child (can be anything really) Actually, I was able to reduce the problem further. It's because of the \t character which should be totally okay. 1. Create a new node. failjson: btm's patch: And a ruby program that fails with the same JSON: There's definitely a second bug to be had where the UI expands the tabs when they're loaded but fails to escape them again when it tries to write them. It shouldn't convert them at all. I found this rescue because of tabs, escaped unicode in the JSON in my case. Can you re-base your patch against the current master (0.8)? Also, it looks like we should resolve this bug, and open a new one regarding escaping and valid JSON creation. UI/jsoneditor bug opened as http://github.com/btm/chef/tree/chef-634 untested, I still haven't gotten 0.8 running, but it should be fine. Thanks, everyone. BTM's patch is applied to make the messages more verbose, and pcrossley's new JSON editor does proper encoding. |
|||||||||||||||||||||||||||||||||||||
http://github.com/btm/chef/tree/chef-634