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

Enable deeply nested virtual connections/connectors #8487

Merged
merged 2 commits into from
Nov 13, 2024

Conversation

mandy-chessell
Copy link
Contributor

Description

This PR fixes the Open Connector Framework (OCF) to allow deeply nested virtual connections. This issue was uncovered by the PostgreSQL repository connector that uses a nested JDBC Resource Connector with a nested secrets connector.

The OCF's ConnectorBroker and the VirtualConnector beans were assuming a nested connection was a plain connection rather than a nested connection. This object is cast multiple times and any embedded virtual connection is lost.

Related Issue(s)

None

Testing

Testing start up of the PostgeSQL Repository Connector with security turned on

Release Notes & Documentation

Need to add description on the security access needed by a postgreSQL repository connector.

Additional notes

The container additional.properties is now using the 5442 port for the PostgreSQL server to match the database port in egeria_workspaces.

@mandy-chessell mandy-chessell merged commit 1420289 into odpi:main Nov 13, 2024
4 checks passed
*
* @return Connection bean
*/
protected VirtualConnection getConnectionBean()

Check notice

Code scanning / CodeQL

Missing Override annotation Note

This method overrides
VirtualConnectionProperties.getConnectionBean
; it is advisable to add an Override annotation.
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

Successfully merging this pull request may close these issues.

1 participant