All stored persistent data gets overriden by every call of the opensocial data 
request newUpdatePersonAppDataRequest
--------------------------------------------------------------------------------------------------------------------

                 Key: AMDATUOPENSOCIAL-84
                 URL: http://jira.amdatu.org/jira/browse/AMDATUOPENSOCIAL-84
             Project: Amdatu OpenSocial
          Issue Type: Bug
          Components: OpenSocial services, Shindig
    Affects Versions: 0.2.0
            Reporter: Manuel Stampe
         Attachments: appData.xml

When an opensocial gadget wants to update/add a key/value pair to the 
persistent AppData, all old entries get overridden. 

In AppDataServiceImpl.java 
(/org.amdatu.opensocial.shindig/src/main/java/org/amdatu/opensocial/shindig/persistence/)
 the line
  user.getProperties().put(APP_DATA, bytesValue);
overrides all "org.amdatu.opensocial.shindig.persistence.appdata" with the new 
bytesValue, which consists only of the new key/value pair.

In the attached gadget, only the last executed newUpdatePersonAppDataRequest   
  req.add(req.newUpdatePersonAppDataRequest("VIEWER", "AppField3", data3));
gets stored correctly.


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
Amdatu-developers mailing list
[email protected]
http://lists.amdatu.org/mailman/listinfo/amdatu-developers

Reply via email to