Driver property cannot be set to null (causes Redshift IAM failure)
See original GitHub issueSystem information:
- Operating system (distribution) and version: Mint Linux 20.1
- DBeaver version: 21.2.5.202111141807
- Additional extensions: None
Connection specification:
- Database name and version: Any, but can try with postgres
- Driver name: : Any, but can try with postgres
- Do you use tunnels or proxies (SSH, SOCKS, etc)? : No
Describe the problem you’re observing:
- It is not possible to connect to Redshift using IAM repeatedly. It is possible to connect once.
- This is because when saving a connection with no
ssl
value it does “work”. But then restarting DBeaver (or reopening the Edit Connection window) the value is set back totrue
.
Steps to reproduce, if exist:
- Create any postgres Driver.
- Set
ssl
to nothing (blank value) - Save
- Reopen, it will have been set back to
true
.
This is a problem as when connecting to Redshift, then ssl
must be null
. Note, this is not a User defined property so it is always present. Setting it to false
/ 0 etc is not enough. As the screenshot shows, it must be null
.
The fix would be that “no value” is stored as null
persistently.
The workaround is to open DBeaver, then navigate to the connection and to blank out the ssl
value every time the application is launched.
NB, This doesn’t disable SSL when connecting to Redshift, as the sslmode
can be set.
Immediate message when restarting DBeaver:
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Unable to create redshift connection - Stack Overflow
I am trying to create the redshift connection using redshift jdbc driver which I downloaded from AWS redshift cluster console.
Read more >Resolve IAM role error in Amazon Redshift
I'm trying to create an Amazon Redshift cluster or scheduled action using AWS CloudFormation. However, I receive an AWS Identity and Access ...
Read more >Amazon Redshift JDBC Driver Installation and Configuration ...
If you are connecting to a Redshift server using IAM authentication, set the following properties as part of your data source connection string....
Read more >Methods to avoid the SQL divide by zero error
In SQL Server, if we divide a number with null, the output is null as well; If the value of the first argument...
Read more >Query Amazon Redshift with Databricks
Learn how to read and write data to Amazon Redshift on Databricks.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We need to investigate that.
@Matvey16 do you have any update on a possible fix for this issue? Thanks