-
Notifications
You must be signed in to change notification settings - Fork 121
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
Fix for java sdk to force the use of suns https Handler #45
Conversation
Will be tested later
Two issues from my end: I can't use the com.sun.* libraries in the SDK, first because we support multiple JDKs, and second because they're deprecated and there's no guarantee they won't be changed to something else entirely (com.oracle.*?) in future releases. Is there some generic access mechanism to get the default handler for the platform that you could use instead? For nulls in RequestProperty, can you give me a case where the show up so I can add it to the test suite, or at least track down the error in the code that's producing them? A null showing up there is not an acceptable value, and means that something's gone wrong. |
Hi Fred Yeah I understand your point regarding the com.sun....ssl.Handler. Since As for the null handeling if get the following entries in the header map As you see Authorization is null and will fail on Weblogic implementation mandag den 20. maj 2013 skrev Fred Ross :
|
On May 21, 2013, at 5:56 AM, Preben Asmussen notifications@github.com wrote:
Would providing a constructor where the user of the SDK can specify an SSL handler, as in ServiceArgs serviceArgs = new ServiceArgs(); Service service = Service.connect(serviceArgs); be a good fix?
Aha. Okay, now I see where to fix it so you won't get those nulls. I'll open a bug for us to fix it here, and if you want to do it straight away in your copy, go to splunk/com/splunk/Service.java, look at the send method. Replace the line request.getHeader().put("Authorization", token); with if (token != null) { We use null as the marker for "this service is not logged in yet." Frederick Ross |
Hi Fred Yeah - the proposed solutions seems fine. Will you provide a branch in your Besides that there are still some spooks regarding the xml streaming This might me due to some problems with the Weblogic stuff and I tried to com.ctc.wstx.exc.WstxEOFException: Unexpected EOF; was expecting a close So for the moment I'm not able to read from Splunk. An other way to bypass all xml streaming problems is to use JSON, but that Best, torsdag den 23. maj 2013 skrev Fred Ross :
|
Fred Any comments on this ? 2013/5/24 Preben Asmussen preben.asmussen@gmail.com
|
Yes, sorry, I've been swamped. Planning on getting to this today. |
Thats ok.
I'm just on it to give it a try. So forth it seems that the mandag den 3. juni 2013 skrev Fred Ross :
|
Excellent. I've also just pushed the fixes we talked about to the develop branch, so you can download and build from there to get them. |
There are some problems using the sdk in application servers eg. Weblogic.
This pull request fixes 2 problems.
Comments :
groupId -> org.codehaus.woodstox
artifactId -> stax2-api
version -> 3.1.1
groupId -> org.codehaus.woodstox
artifactId -> woodstox-core-asl
version -> 4.1.5
To be independent on jdk/app server library.