Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Spring Social Linkedin Connection: 400 Bad Request

  1. #11
    Join Date
    Dec 2011
    Location
    Belgrade, Serbia
    Posts
    2

    Default

    Thanks for the answer. It is very helpful. On the other hand it gives the 400 Bad Request because the Enum that defines the sort parameter has value RECOMMENDORS instead of RECOMMENDERS.

  2. #12
    Join Date
    Aug 2004
    Posts
    1,070

    Default

    I've fixed this issue by changing RECOMMENDORS to RECOMMENDERS and by making some small changes to the parameter expansion routine to better handle placement of ampersands. I've tested it with the same criteria given above and it works fine.

    That said, I'm not a big fan of how the parameter expansion code works and may revisit it to make it more solid.
    Craig Walls
    Spring Social Project Lead

  3. #13
    Join Date
    Jul 2010
    Location
    Dublin, Ireland
    Posts
    17

    Default

    Quote Originally Posted by habuma View Post
    That said, I'm not a big fan of how the parameter expansion code works and may revisit it to make it more solid.
    Fare enough. Fell free to tart up as you see fit. It was very much a first attempt.

    Just a word of warning though. I'd a lot of hassles with this area of the code as LinkedIn works differently to all the other Social Interfaces. They require GET parameters tacked on to the end of the request. In a number of cases the Spring Web RestTemplate was encoding the parameters and thus URL Encoding the &'s which caused the request to completely fail.

    It would be ideal if you could extend the Spring Web RestOperations to fit your needs.

    Make sure you test against the actual API (rather than unit tests) if you make changes here.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •