Hi.

Is there any problem with signed request on sandbox.orkut.com? Since Friday
my application stopped working on sandbox.orkut.com: all requests returned
404 Error. This error didn't happen on prod.sandbox.orkut.com, though.
To check this issue, I ran the following code using OpenSocial Dev App (
http://osda.appspot.com/)

Code:

function request() {
  var params = {};
  params[gadgets.io.RequestParameters.AUTHORIZATION] =
gadgets.io.AuthorizationType.SIGNED;
  params[gadgets.io.RequestParameters.CONTENT_TYPE] =
gadgets.io.ContentType.JSON;
  gadgets.io.makeRequest('http://graargh.returnstrue.com/buh/fetchme.php',
response, params);
};

function response(obj) {
  if (obj.rc != 200) {
    output('Error!');
    output(obj.errors);
  }
  output(obj.text);
};

request();

This is the result in prod.sandbox.orkut.com:

{"validated":"Success! The data was validated","raw":"GET&http%3A%2F%
2Fgraargh.returnstrue.com
%2Fbuh%2Ffetchme.php&oauth_body_hash%3D2jmj7l5rSw0yVb%252FvlWAYkK%252FYBwk%253D%26oauth_consumer_key%3Dorkut.com%26oauth_nonce%3D1242150007621772000%26oauth_signature_method%3DRSA-SHA1%26oauth_timestamp%3D1242150007%26oauth_version%3D1.0%26opensocial_app_id%3D11044277108241352714%26opensocial_app_url%3Dhttp%253A%252F%
252Fosda.appspot.com
%252Fgadget%252Fosda-orkut.xml%26opensocial_owner_id%3D12116170037554479169%26opensocial_viewer_id%3D12116170037554479169%26xoauth_signature_publickey%3Dpub.1199819524.-1556113204990931254.cer","query":{"oauth_body_hash":"2jmj7l5rSw0yVb\/vlWAYkK\/YBwk=","opensocial_owner_id":"12116170037554479169","opensocial_viewer_id":"12116170037554479169","opensocial_app_id":"11044277108241352714","opensocial_app_url":"http:\/\/
osda.appspot.com
\/gadget\/osda-orkut.xml","xoauth_signature_publickey":"pub.1199819524.-1556113204990931254.cer","oauth_version":"1.0","oauth_timestamp":"1242150007","oauth_consumer_key":"
orkut.com
","oauth_signature_method":"RSA-SHA1","oauth_nonce":"1242150007621772000","oauth_signature":"jUVwPXE96ZZwB\/ici7z9bmUJB6Zpp2ibDYEVv3gsUo70J2yRRnHl1WuMNEkO47CU1kJZ0oGyTd8TyWXuGiknaKGtZ9YIrwDsBmr4ab\/akctM1gNqrRPqNACcqQlvQ22jaZXAKEQPIy3VpjNxoxT1419nPSiEvEWulYKjaZ0d0I8="},"url":"http:\/\/
graargh.returnstrue.com
\/buh\/fetchme.php","getandpost":{"oauth_body_hash":"2jmj7l5rSw0yVb\/vlWAYkK\/YBwk=","opensocial_owner_id":"12116170037554479169","opensocial_viewer_id":"12116170037554479169","opensocial_app_id":"11044277108241352714","opensocial_app_url":"http:\/\/
osda.appspot.com
\/gadget\/osda-orkut.xml","xoauth_signature_publickey":"pub.1199819524.-1556113204990931254.cer","oauth_version":"1.0","oauth_timestamp":"1242150007","oauth_consumer_key":"
orkut.com
","oauth_signature_method":"RSA-SHA1","oauth_nonce":"1242150007621772000","oauth_signature":"jUVwPXE96ZZwB\/ici7z9bmUJB6Zpp2ibDYEVv3gsUo70J2yRRnHl1WuMNEkO47CU1kJZ0oGyTd8TyWXuGiknaKGtZ9YIrwDsBmr4ab\/akctM1gNqrRPqNACcqQlvQ22jaZXAKEQPIy3VpjNxoxT1419nPSiEvEWulYKjaZ0d0I8="},"rawpost":""}

Running the same code on sandbox.orkut.com, I got this result:

Error!
Error 404

However, when I commented the line with AuthorizationType.SIGNED, I got
this:

{"validated":"This request was spoofed","raw":"GET&http%3A%2F%
2Fgraargh.returnstrue.com%2Fbuh%2Ffetchme.php&","query":[],"url":"http:\/\/
graargh.returnstrue.com\/buh\/fetchme.php","getandpost":[],"rawpost":""}

Is there anything I can do to avoid this issue?

Regards.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to