ebhun851 / linkedin-j

Automatically exported from code.google.com/p/linkedin-j
0 stars 0 forks source link

GroupsApiClient createPost Error for restricted groups #110

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

What steps will reproduce the problem?
1. Create a new instance of the LinkedInApiClientFactory
2. Use the factory to create a LinkedInApiClient from token and secret
3. Use the client's createPost method to post in a group the requires post 
approbation. 

The createPost method implemented in the BaseLinkedInApiClient works fine for 
groups that do not require post approbation.  Actually it also works for groups 
that do require post approbation but the response status code from LinkedIn is 
202 (Accepted) instead of the expected 201 (Created) which causes the client to 
look for an error in the request error stream.  Since this is not an error the 
error stream is null and that causes a NullPointerException.

Same problem in version 1.0.416 and 1.0.429

Original issue reported on code.google.com by sebereni...@gmail.com on 11 Jun 2012 at 9:08