QUSIR / staff

Automatically exported from code.google.com/p/staff
Apache License 2.0
0 stars 0 forks source link

Double request send with HTTP authenticated ws #175

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Generate a SOAPUI mockserver from the wsdl and run it (it doesn't  need to 
be authenticated, the bug appears whether the server is authenticated or not). 
2. Compile the code attached with make
3. run the client code

What is the expected output? What do you see instead?
In the message logs of the mock server I expect to see a single request, 
instead I get 2 requests every time I call the method.... I did a capture with 
wireshark and the packets are exactly the same...

What version of the product are you using? On what operating system?
I'm on revision 683, I saw the bug under ubuntu 11.10 and RH5

Please provide any additional information below.
I tried it also against 2 real servers with a authentication and it sends the 
double request also.

Original issue reported on code.google.com by alexmantaut on 10 Aug 2012 at 3:40

Attachments:

GoogleCodeExporter commented 9 years ago
I still need to confirm if the double request send is not normal, but
I debugged a bit inside the staff and axis2c code, and I reached a 
http_sender.c (axis code)... 

It seems that if the force_http_auth flag is set it sends the request (line 
1020), and then it evaluates if force_http_auth_with_head is set, and it 
executes a client send whether force_http_auth_with_head is set or not, so it 
executes the request twice...

At this point I'm not sure if it is an axis configuration issue (that would 
mean a staff problem) or that the force_http_auth_with_head evaluation should 
be in an else (so it is only performed if force_http_auth is false)

(using axis2c 1.6.0 branch)

Original comment by alexmantaut on 13 Aug 2012 at 4:05

GoogleCodeExporter commented 9 years ago
found the problem, it is an axis issue, and it is fixed in the trunk version...
to get a patch see https://issues.apache.org/jira/browse/AXIS2C-1244

Original comment by alexmantaut on 13 Aug 2012 at 6:30

GoogleCodeExporter commented 9 years ago
This is an Axis2/C issue.

Original comment by loentar on 13 Aug 2012 at 6:45