Newline parsing is broken in JSON2.js shipped with Riak. Drop a more recent version of JSON2.js in the directory referred to by js_source_dir in app.config's riak_kv section, e.g.

{js_source_dir, "/etc/riak/js/"}

and reload the node.

--Kyle

On 03/23/2011 01:31 PM, Michael Ossareh wrote:
Greets,

https://gist.github.com/883872

That stack trace is the product of calling Riak.mapValuesJson in a map
phase of a map reduce job. I checked the same parsing against Chrome and
Firefox and they both parse the string as I'd expect. The object, as a
string, that is being parsed is:

"{\"bar\":\"baz\\r\\nfrob\"}"

The setup is: Riak 0.14.0 on Mac OS X 10.6.6 and CentOS 5.5


Any advice / pointers, greatly appreciated. Also, let me know if there
is anything else I can do to help.

Cheers,

mike



_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to