Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Additional rcudb validation #1396

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

Merged
robertpatrick merged 7 commits into main from additional-rcudb-validation
Feb 17, 2023
Merged

Additional rcudb validation #1396

robertpatrick merged 7 commits into main from additional-rcudb-validation
Feb 17, 2023

Conversation

@jshum2479
Copy link
Member

@jshum2479 jshum2479 commented Feb 17, 2023

This PR adds more validations to RCUDbinfo:

(1) databaseType must be ATP, SSL or ORACLE
(2) check for file existence for data source params property that reference file: keystore, truststore
(3) log RCU data source driver param setting to assist diagnostics

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Feb 17, 2023
rcu_schema_pass = rcu_db_info.get_preferred_schema_pass()

databaseType = rcu_db_info.get_database_type()
if databaseType is not None and databaseType not in ['SSL', 'ATP', 'ORACLE']:
Copy link
Member

@robertpatrick robertpatrick Feb 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make this list a constant in case we ever need to use it elsewhere and/or change the items in the list.

self.__set_connection_property(location, DRIVER_PARAMS_NET_FAN_ENABLED, 'false')
self.__set_connection_property_info(location, DRIVER_PARAMS_TRUSTSTOREPWD_PROPERTY, truststore_pwd,
properties_set, encrypted=True)
self.__set_connection_property_info(location, DRIVER_PARAMS_NET_SSL_VERSION, '1.2', properties_set)
Copy link
Member

@robertpatrick robertpatrick Feb 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the SSL version value should be a constant since presumably, it may change in the future?

Copy link

@robertpatrick robertpatrick deleted the additional-rcudb-validation branch February 17, 2023 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@robertpatrick robertpatrick robertpatrick approved these changes

@rakillen rakillen rakillen approved these changes

@ddsharpe ddsharpe Awaiting requested review from ddsharpe

+1 more reviewer

@CarolynRountree CarolynRountree CarolynRountree approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /