Hi Mona,<div><br></div><div>I can't reproduce this behavior.</div><div><br></div><div><br></div><div><br></div><div><br></div><div>I'm working on the 3.2.6 tagged branch and did the following:</div><div><br></div><div>
<br></div><div><br></div><div><br></div><div>Created an Item, uploaded a file to the Item so that the Item had one ItemRevision.</div><div><br></div><div>Made this API call:</div><div><br></div><div><myserver>/midas3/api/json?method=midas.item.setmetadata&useSession&itemId=1692&element=teste&value=rev1</div>
<div><br></div><div>And then the Item's ItemRevision 1 had metadata of (teste, '', rev1).</div><div><br></div><div>Then I uploaded a new revision to the Item, so that the Item now had 2 ItemRevisions.  Then I made this API call:</div>
<div><br></div><div><div><myserver>/midas3/api/json?method=midas.item.setmetadata&useSession&itemId=1692&element=teste&value=rev2</div></div><div><br></div><div>After that, I had metadata associated with ItemRevisions as follows, which appears correct to me:</div>
<div><br></div><div>(ItemRevision 1, teste, '', rev1)</div><div><div>(ItemRevision 2, teste, '', rev2)</div></div><div><br></div><div><br></div><div>Can you try this sequence and see what you get?  Also you could retry your sequence of operations and then send me the exact sequence.</div>
<div><br></div><div><br></div><div>Thanks,</div><div>Mike</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br><div class="gmail_quote">On Fri, Jul 13, 2012 at 2:08 AM, Mona Wong <span dir="ltr"><<a href="mailto:mona@sdsc.edu" target="_blank">mona@sdsc.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
        Continuing with my previous email of the same subject...<br>
<br>
        Next, I used midas.item.setmetada on the same itemid and the metadata I set for the second revision got attached to the first revision and the second revision showed no metadata!<br>
<div class="im"><br>
Mona<br>
<br>
*********************************************<br>
    Mona Wong<br>
    Web & iPad Application Developer<br>
    San Diego Supercomputer Center<br>
<br>
</div>    You are the light you wish to see.<br>
<div class="HOEnZb"><div class="h5">*********************************************<br>
<br>
<br>
<br>
_______________________________________________<br>
Midas mailing list<br>
<a href="mailto:Midas@public.kitware.com">Midas@public.kitware.com</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/midas" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/midas</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Thanks,<br>Michael Grauer<br>R & D Engineer<br>Kitware, Inc.<br>919 969 6990 x322<br><br><br><br>
</div>