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

HANA connection dialog: convert GENERIC + host=<host>:443 to CLOUD (#35045) #35046

Merged
merged 4 commits into from
Sep 12, 2024

Conversation

kai-morich
Copy link
Contributor

No description provided.

@E1izabeth E1izabeth linked an issue Aug 1, 2024 that may be closed by this pull request
@E1izabeth
Copy link
Member

Thank you for contribution!

@@ -182,7 +182,7 @@ public void loadSettings() {
super.loadSettings();
DBPConnectionConfiguration connectionInfo = site.getActiveDataSource().getConnectionConfiguration();
edition = HANAEdition.fromName(connectionInfo.getProviderProperty(PROV_PROP_EDITION));
portValue = CommonUtils.toString(connectionInfo.getHostPort(), site.getDriver().getDefaultPort());
portValue = CommonUtils.toString(connectionInfo.getHostPort()/*, site.getDriver().getDefaultPort()*/);
Copy link
Member

Choose a reason for hiding this comment

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

We don't need default port anymore?

Copy link
Contributor Author

@kai-morich kai-morich Aug 11, 2024

Choose a reason for hiding this comment

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

All editions except GENERIC have there own rule to calculate the port from other fields or have a fixed port.
GENERIC is not really an own edition, but a fallback that allows pasting already know host+port. The preset port was wrong in most cases as an on-premise HANA has an instance number in the range from 0 to 99 and the actual port depends on that number.

@kai-morich kai-morich requested a review from serge-rider August 11, 2024 08:13
@E1izabeth
Copy link
Member

We passed your PR to our QA team for testing

@MashaKorax
Copy link
Contributor

verified

@serge-rider serge-rider merged commit a426bdb into dbeaver:devel Sep 12, 2024
2 checks passed
@kai-morich kai-morich deleted the hana-cloud-connection-dialog branch September 17, 2024 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

improve connection dialog for HANA Cloud
4 participants