<div style="font-family: Helvetica; font-size: 13px;">Hi guys, any ideas on this thing below? Am I missing something around how links should work when using bucket types?<div><br></div><div>Thank you</div><div>Cos</div></div>
                <div></div>
                 
                <p style="color: #A0A0A8;">On Wednesday, 21 January 2015 at 20:42, Cosmin Marginean wrote:</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
                    <span><div><div>
                <div>
                    Using Riak 2.0.2 on CentOS and trying to create some Links attached to an object using the Links header.
                </div><div>We are using bucket types and this behaviour doesn’t seem to replicate when using plain buckets.</div><div><br></div><div>Doing the following works as expected</div><div><br></div><div><pre style="font-family: Menlo;"><span style="color: rgb(197, 118, 51); font-style: italic;">curl </span>-H <span style="color: rgb(0, 128, 0); font-weight: bold;">"Content-Type:text/plain" </span>-X POST <span style="color: rgb(0, 128, 0); font-weight: bold;">"<a href="http://192.168.168.2:8098/types/mybuckettype/buckets/temp/keys/key1">http://192.168.168.2:8098/types/mybuckettype/buckets/temp/keys/key1</a>" </span>-d <span style="color: rgb(0, 128, 0); font-weight: bold;">"some text"</span></pre></div><div><pre style="font-family: Menlo;"><span style="color: rgb(197, 118, 51); font-style: italic;">curl </span>-H <span style="color: rgb(0, 128, 0); font-weight: bold;">'Link: </buckets/temp/keys/key1>; riaktag="tag\"' </span>-H <span style="color: rgb(0, 128, 0); font-weight: bold;">"Content-Type:text/plain" </span>-X POST <span style="color: rgb(0, 128, 0); font-weight: bold;">"<a href="http://192.168.168.2:8098/types/">http://192.168.168.2:8098/types/</a></span><span style="color: rgb(0, 128, 0); font-weight: bold;">mybuckettype</span><span style="color: rgb(0, 128, 0); font-weight: bold;">/buckets/temp/keys/key2" </span>-d <span style="color: rgb(0, 128, 0); font-weight: bold;">"some other text"</span></pre></div><div><br></div><div>However when I try to read the key2 entry it returns a 500 internal server error.</div><div><pre><span style="font-family: Menlo; color: rgb(197, 118, 51); font-style: italic;">curl </span><font face="Menlo">-X GET </font><span style="font-family: Menlo; color: rgb(0, 128, 0); font-weight: bold;">"<a href="http://192.168.168.2:8098/types/">http://192.168.168.2:8098/types/</a></span><span style="font-family: Menlo; color: rgb(0, 128, 0); font-weight: bold;">mybuckettype</span><span style="font-family: Menlo; color: rgb(0, 128, 0); font-weight: bold;">/buckets/temp/keys/key2</span><font color="#008000" face="Menlo"><b>”</b></font></pre><pre style="font-family: Menlo;"><html><head><title>500 Internal Server Error</title></head><body><h1>Internal Server Error</h1>The server encountered an error while processing this request:<br><pre>{error,
    {error,function_clause,
        [{riak_kv_wm_utils,format_uri,
             ["temp","key1","riak",3],
             [{file,"src/riak_kv_wm_utils.erl"},{line,188}]},
         {riak_kv_wm_utils,format_links,4,
             [{file,"src/riak_kv_wm_utils.erl"},{line,180}]},
         {riak_kv_wm_object,produce_doc_body,2,
             [{file,"src/riak_kv_wm_object.erl"},{line,847}]},
         {webmachine_resource,resource_call,3,
             [{file,"src/webmachine_resource.erl"},{line,186}]},
         {webmachine_resource,do,3,
             [{file,"src/webmachine_resource.erl"},{line,142}]},
         {webmachine_decision_core,resource_call,1,
             [{file,"src/webmachine_decision_core.erl"},{line,48}]},
         {webmachine_decision_core,decision,1,
             [{file,"src/webmachine_decision_core.erl"},{line,558}]},
         {webmachine_decision_core,handle_request,2,
             [{file,"src/webmachine_decision_core.erl"},{line,33}]}]}}</pre><P><HR><ADDRESS>mochiweb+webmachine web server</ADDRESS></body></html></pre><pre><div style="font-family: Helvetica; white-space: normal;">Also, a HEAD on the key is hanging indefinitely</div><div><pre><span style="font-family: Menlo; color: rgb(197, 118, 51); font-style: italic;">curl </span><font face="Menlo">-X HEAD </font><span style="font-family: Menlo; color: rgb(0, 128, 0); font-weight: bold;">"<a href="http://192.168.168.2:8098/types/">http://192.168.168.2:8098/types/</a></span><span style="color: rgb(0, 128, 0); font-weight: bold; font-family: Menlo;">mybuckettype</span><span style="font-family: Menlo; color: rgb(0, 128, 0); font-weight: bold;">/buckets/temp/keys/key2</span><font color="#008000" face="Menlo"><b>”</b></font></pre><pre style="font-family: Menlo;"><div style="font-family: Helvetica; white-space: normal;"><br></div><div style="font-family: Helvetica; white-space: normal;">Thanks in advance</div><div style="font-family: Helvetica; white-space: normal;">Cos</div><div><br></div></pre></div></pre></div>
                 
            </div></div></span>
                 
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>