Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default soapAction to a minimum version in WSClient #278

Open
ravirangappa opened this issue Oct 15, 2019 · 3 comments
Open

Default soapAction to a minimum version in WSClient #278

ravirangappa opened this issue Oct 15, 2019 · 3 comments

Comments

@ravirangappa
Copy link

This is more of a question and not a bug.

Starting vSphere 7.0, any SOAP request with empty soapAction header value is treated as a non-compliance with HTTP 1.1 specs and is rejected.

POST /sdk HTTP/1.1
SOAPAction
Content-Type: text/xml; charset=utf-8
User-Agent: Java/1.8.0_221
...

An empty header value violates the HTTP protocol mandating that the HTTP header
field format is a field-name followed by a colon and a value.
See https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2

The soapAction value is currently being defaulted to an empty string in WsClient.java (line 157).
Can we default it instead to point to some minimum version, say SOAP_ACTION_V55?

Thanks,
Ravi

@michaelrice
Copy link
Member

michaelrice commented Oct 15, 2019 via email

@ravirangappa
Copy link
Author

Attached the patch file generated from level:
https://github.com/yavijava/yavijava.git/

Thanks,
Ravi

WSClient.java.zip

@ravirangappa
Copy link
Author

Hello Michael,

Any ideas when this patch could get into a release?
We plan to migrate to yavijava from the legacy vijava library as soon as the proposed fix is available in a release. Until a formal release is available, we are stuck with vijava.

Thanks,
Ravi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants