Skip to content

fix(datasource): connecting failed in OceanBase Oracle after correcting the username#1797

Merged
yizhouxw merged 2 commits into
dev/4.2.xfrom
lebie_424_fix_default_schema
Mar 11, 2024
Merged

fix(datasource): connecting failed in OceanBase Oracle after correcting the username#1797
yizhouxw merged 2 commits into
dev/4.2.xfrom
lebie_424_fix_default_schema

Conversation

@MarkPotato777
Copy link
Copy Markdown
Contributor

What type of PR is this?

type-bug

What this PR does / why we need it:

ConnectionConfig.defaultSchema is deprecated at the API level, so this PR adds @JsonIgnore on this field to prevent the issue which is that when users update the data source username, the front-end will pass the defaultSchema which is obtained from the detail API, and this will cause some logic error in the back-end: the odc server will not update the default schema using the username, it will use the old default schema passed by the front-end.

Which issue(s) this PR fixes:

Fixes #1626

Special notes for your reviewer:

Additional documentation e.g., usage docs, etc.:


@MarkPotato777 MarkPotato777 added the type-bug Something isn't working label Mar 7, 2024
@MarkPotato777 MarkPotato777 added this to the ODC 4.2.4 milestone Mar 7, 2024
@MarkPotato777 MarkPotato777 self-assigned this Mar 7, 2024
@MarkPotato777 MarkPotato777 changed the title fix(datasource): connect failed in oracle mode after correcting the username fix(datasource): connecting failed in oracle mode after correcting the username Mar 7, 2024
@MarkPotato777 MarkPotato777 changed the title fix(datasource): connecting failed in oracle mode after correcting the username fix(datasource): connecting failed in OceanBase Oracle after correcting the username Mar 7, 2024
Copy link
Copy Markdown
Contributor

@yhilmare yhilmare left a comment

Choose a reason for hiding this comment

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

lgtm

@yizhouxw yizhouxw merged commit 7c0a49d into dev/4.2.x Mar 11, 2024
@yizhouxw yizhouxw deleted the lebie_424_fix_default_schema branch March 11, 2024 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug Something isn't working

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants