Welcome Developers!

in

Welcome!

in

MySpace returning improper signature

Last post 04-22-2008 3:22 AM by FlashWidgetz. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 03-21-2008 11:57 AM

    MySpace returning improper signature

    My space is returning and improper signature from the makerequest call. There is definitely issue with encoding of the url.

    When using the Oauth Tool myspace gives me the same signature and basestring that I expect. 

    However when using makerequest myspace is delivering an invalid signature because it is using and invalid basestring.

    My url request was: http://www.myserver.com/login!view.jsp  when using this url myspace would return the wrong signature.
    However when removing the ! and using a new url address http://www.myserver.com/loginview.jsp it works. 

    MySpace returned the signature as if the url was encoded as : http%3A%2F%2Fqa.flashwidgetz.com%2Fmyspace%2Flogin!view.jsp

    insted of as

    http%3A%2F%2Fqa.flashwidgetz.com%2Fmyspace%2Flogin%21view.jsp 

    The ! was not converted into %21.


  • 03-24-2008 2:15 PM In reply to

    Re: MySpace returning improper signature

    Hi, I'm trying to repro this without success, can you provide sample code?

    I'm doing this:

    opensocial.makeRequest("http://test.com/test!.html", gotMakeRequest, param); 

    Which gets proxied out to:

    http://api.msappspace.com/proxy/relay.proxy?opensocial_token=blah&opensocial_url=http%3A//test.com/test%21.html

    Under what circumstances does this happen?  Signed requests? 

  • 04-22-2008 3:22 AM In reply to

    Re: MySpace returning improper signature

    Sorry for the late response. I do a makerequest to http://www.test.com/test!ajax.jsp

    var fullurl = "http://www.test.com/test!ajax.jsp";
    var param = {};
    param[gadgets.io.RequestParameters.METHOD] = gadgets.io.MethodType.GET;
    param[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.HTML;
    param[gadgets.io.RequestParameters.AUTHORIZATION] = gadgets.io.AuthorizationType.SIGNED;
    gadgets.io.makeRequest(fullurl, function(){ }, params ); 

    When my server gets the request the signature that is attached encodes the signature using  ! and not %21 as the encoding. Try it. I have been able to reproduce this constantly. MySpace is not encoding the ! thus the signature that is sent back is incorrect.

Page 1 of 1 (3 items)