Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1325323 - [Docs] [Java SDK] Configuring SSL example for Java-sdk is incorrect
[Docs] [Java SDK] Configuring SSL example for Java-sdk is incorrect
Status: CLOSED CURRENTRELEASE
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: Documentation (Show other bugs)
3.5.7
Unspecified Unspecified
medium Severity medium
: ovirt-3.6.7
: ---
Assigned To: Andrew Dahms
Lucy Bopf
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-04-08 08:49 EDT by Roman Hodain
Modified: 2016-05-30 18:57 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-05-30 18:57:42 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: Docs
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Roman Hodain 2016-04-08 08:49:59 EDT
Description of problem:
The documentation 

     https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.5/html/Technical_Guide/Working_with_SSL_Secure_Socket_Layer.html

Says that the following should be used in order to pass the trust store to the Api:

     Api api = new Api(url, user, password, "/path/server.truststore");

There is no constructor like this for Api. The only possible way to do this it to use the following constructor:

public Api(String url, String username, String password, String sessionid, Integer port, Integer requestTimeout, Integer sessionTimeout, Boolean persistentAuth, String keyStorePath, String keyStorePassword, Boolean filter, Boolean debug) throws ClientProtocolException, ServerException, UnsecuredConnectionAttemptError, IOException

url - oVirt api url
username - oVirt api username
password - oVirt api password
sessionid - oVirt api sessionid to authenticate the user with (used as SSO solution instead of username+password)
port - oVirt api portrequestTimeout - request timeout (preserved for future use)
sessionTimeout - authentication session inactivity timeout in minutes (if persistentAuth is enabled)
persistentAuth - disable persistent authentication (will be used auth. per request)
keyStorePath - path to CA certificate 
KeyStorekeyStorePassword - password for the CA certificate KeyStorefilter - enables filtering based on user's permissions
debug - enables debug mode

Version-Release number of selected component (if applicable):
    Technical_Guide for 3.5 The way of doing this is different in 3.6.
Comment 1 Andrew Dahms 2016-04-26 09:02:28 EDT
Taking this to address initially in the RHEV 3.6 documentation.
Comment 5 Andrew Dahms 2016-05-19 21:58:38 EDT
It has been over one week since the last comment on this bug, and because I have tested the changes, I am placing this bug on QA.

Assigning Lucy as the QA contact.

Lucy - would you be able to take a look at the changes for this bug, as outlined in the above comments?
Comment 6 Lucy Bopf 2016-05-22 23:53:52 EDT
Thanks, Andrew. I've reviewed the changes for both 3.5 and 3.6, and everything looks good to me.

Moving to VERIFIED.

Note You need to log in before you can comment on or make changes to this bug.