Hi all,<div><br></div><div>I'm performing a mapreduce call for retrieving objects with a peculiar tag link:</div><div><br></div><div>{"inputs": "minos","query": [{"map": {"language": "javascript","source": "function(v){ if(v.values[0].metadata.Links!=null && v.values[0].metadata.Links[0][0]==\"eclass-com_chelab_core_minos\" &&v.values[0].metadata.Links[0][1]==\"State\" &&v.values[0].metadata.Links[0][2]==\"iof\")  {return [v.key]; } else return [];}"}}]}</div>
<div><br></div><div>I have an object stored in binary format(protobuf) that the body is (json format):</div><div><br></div><div><div>{</div><div>    "name": "2login",</div><div>    "type": "start",</div>
<div>    "transitions": [</div><div>        {</div><div>            "name": "logon",</div><div>            "nextState": "logged",</div><div>            "guard": "request.user!=null && request.password!=null",</div>
<div>            "activity": {</div><div>                "name": "call-login",</div><div>                "serviceName": "<a href="http://apigeoname">http://apigeoname</a>",</div>
<div>                "condition": "this.password==request.password"</div><div>            }</div><div>        }</div><div>    ]</div><div>}</div></div><div><br></div><div>and the mapreduce works fine.</div>
<div><br></div><div>IF I change JUST 'serviceName' element to '<a href="http://apigeonames">http://apigeonames</a>' adding the last char 's' I encounter and error in the mapreduce above. </div><div>
the error log is:</div><div><br></div><div><br></div><div><br></div><div><div>Error JSON encoding arguments: [{struct,</div><div>                                 [{<<"bucket">>,<<"minos">>},</div>
<div>                                  {<<"key">>,<<"2login">>},</div><div>                                  {<<"vclock">>,</div><div>                                   <<"a85hYGBgzGDKBVIsLNdPbMpgSmTMY2XYIXvmOF8WAA==">>},</div>
<div>                                  {<<"values">>,</div><div>                                   [{struct,</div><div>                                     [{<<"metadata">>,</div>
<div>                                       {struct,</div><div>                                        [{<<"Links">>,</div><div>                                          [[<<"eclass-com_chelab_core_minos">>,</div>
<div>                                            <<"State">>,<<"iof">>]]},</div><div>                                         {<<"X-Riak-VTag">>,</div><div>
                                          <<"1uFeJm9wytHzl66Pxjsunx">>},</div><div>                                         {<<"content-type">>,</div><div>                                          <<"application/octet-stream">>},</div>
<div>                                         {<<"X-Riak-Last-Modified">>,</div><div>                                          <<"Fri, 26 Aug 2011 13:38:00 GMT">>}]}},</div><div>
                                      {<<"data">>,</div><div>                                       <<26,128,1,10,5,108,111,103,111,</div><div>                                         110,18,6,108,111,103,103,101,</div>
<div>                                         100,26,44,114,101,113,117,101,</div><div>                                         115,116,46,117,115,101,114,33,</div><div>                                         61,110,117,108,108,32,38,38,32,</div>
<div>                                         114,101,113,117,101,115,116,46,</div><div>                                         112,97,115,115,119,111,114,100,</div><div>                                         33,61,110,117,108,108,34,65,18,</div>
<div>                                         18,104,116,116,112,58,47,47,97,</div><div>                                         112,105,103,101,111,110,97,109,</div><div>                                         101,115,34,10,99,97,108,108,45,</div>
<div>                                         108,111,103,105,110,42,31,116,</div><div>                                         104,105,115,46,112,97,115,115,</div><div>                                         119,111,114,100,61,61,114,101,</div>
<div>                                         113,117,101,115,116,46,112,97,</div><div>                                         115,115,119,111,114,100,42,6,</div><div>                                         50,108,111,103,105,110,64,6>>}]}]}]},</div>
<div>                                undefined,none]</div><div><br></div><div><div>{error,</div><div>    {no_candidate_nodes,exhausted_preflist,</div><div>        [{riak_kv_mapred_planner,claim_keys,3},</div><div>         {riak_kv_map_phase,handle_info,2},</div>
<div>         {luke_phase,handle_info,3},</div><div>         {gen_fsm,handle_msg,7},</div><div>         {proc_lib,init_p_do_apply,3}],</div><div>        [{{5680,'<a href="mailto:riak@127.0.0.1">riak@127.0.0.1</a>'},</div>
<div>          [{pid,<0.12932.0>},</div><div>           {keys,</div><div>               {{730750818665451459101842416358141509827966271488,</div><div>                 '<a href="mailto:riak@127.0.0.1">riak@127.0.0.1</a>'},</div>
<div>                [{riak_kv_map_input,</div><div>                     {<<"minos">>,<<"2login">>},</div><div>                     [{name,<<"minos">>},</div>
<div>                      {n_val,3},</div><div>                      {allow_mult,false},</div><div>                      {last_write_wins,false},</div><div>                      {precommit,[]},</div><div>                      {postcommit,[]},</div>
<div>                      {chash_keyfun,{riak_core_util,chash_std_keyfun}},</div><div>                      {linkfun,</div><div>                          {modfun,riak_kv_wm_link_walker,mapreduce_linkfun}},</div><div>                      {old_vclock,86400},</div>
<div>                      {young_vclock,20},</div><div>                      {big_vclock,50},</div><div>                      {small_vclock,10},</div><div>                      {r,quorum},</div><div>                      {w,quorum},</div>
<div>                      {dw,quorum},</div><div>                      {rw,quorum}],</div><div>                     undefined,</div><div>                     [{730750818665451459101842416358141509827966271488,</div><div>
                       '<a href="mailto:riak@127.0.0.1">riak@127.0.0.1</a>'}]}]}}]},</div><div>         {<0.12932.0>,{5680,'<a href="mailto:riak@127.0.0.1">riak@127.0.0.1</a>'}}]}}</div></div><div><br>
</div><div><br></div><div>have you any idea about this problem?</div><div><br></div><div>Thanks,</div><div><br></div><br><div>Giancarlo Frison</div><br>
</div>