alfdev / linkedin-j

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

Create post method call fails for Group has "pre approval of all posts" enabled #107

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Have a Group, which has the pre approval for posts setting enabled 
2. Using createPost() method call try to post to this Group 

What is the expected output? What do you see instead?
It should not throw Null pointer exception. Request should be successful.

What version of the product are you using? On what operating system?
Latest

Please provide any additional information below.

createPost(), always expecting 200 OK response. Group with pre approval of post 
enabled in setting, returns 202 ACCEPTED. The request is accepted (which is 
successful from linkedin-j point of view), and will be posted once the Group 
owner accepts this.

Need to have one more check for "HTTP_ACCEPTED" as well, which is a SUCCESSFUL 
response for this scenario. 

Original issue reported on code.google.com by gokul0...@gmail.com on 29 May 2012 at 4:20