Riak.mapValuesJson crashes on \r\n

Aphyr aphyr at aphyr.com
Wed Mar 23 16:34:55 EDT 2011


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
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com




More information about the riak-users mailing list