subhadipdas / opensocial-java-client

Automatically exported from code.google.com/p/opensocial-java-client
0 stars 0 forks source link

updatePersonAppData with data value containing = and & chars fails #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

updatePersonAppData with data value containing = and & chars fail

Test case for Java client lib:

c.setProperty(OpenSocialClient.Properties.RPC_ENDPOINT, RPC_BASE_URI);
c.setProperty(OpenSocialClient.Properties.REST_BASE_URI, BASE_URI);
c.setProperty(OpenSocialClient.Properties.CONSUMER_SECRET, SECRET);
c.setProperty(OpenSocialClient.Properties.CONSUMER_KEY, APP_KEY);
c.setProperty(OpenSocialClient.Properties.VIEWER_ID, USER_ID);
Map<String, String> map = new HashMap<String, String>();
map.put("mykey", "test==");
c.updatePersonAppData(map);

or 

map.put("mykey", "test&");
c.updatePersonAppData(map);

What is the expected output? What do you see instead?
Setting of app data for user should succeed.  Instead it returns a 401.

What version of the product are you using? On what operating system?
Testing with eclipse / Java 6, on WinXP Pro.

Please provide any additional information below.
Jason + Chris Chabot are already aware of the problem.. Thanks guys!

Original issue reported on code.google.com by dave.wes...@gmail.com on 2 Mar 2009 at 7:34

GoogleCodeExporter commented 9 years ago

Original comment by apijason...@gtempaccount.com on 18 Mar 2009 at 9:49