mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-23 15:03:26 -06:00
Ensure server connection is successful for sslrootcert=system in server configuration. #7907
This commit is contained in:
parent
9be0fef470
commit
2cc8f5f272
@ -65,7 +65,7 @@ export class FileTreeItem extends React.Component<IItemRendererXProps & IItemRen
|
||||
? 'file'
|
||||
: 'directory';
|
||||
|
||||
if (this.props.item.parent?.path) {
|
||||
if (this.props.item.parent?.parent && this.props.item.parent?.path) {
|
||||
this.props.item.resolvedPathCache = this.props.item.parent.path + '/' + this.props.item._metadata.data.id;
|
||||
}
|
||||
|
||||
|
@ -670,11 +670,14 @@ WHERE db.oid = {0}""".format(did))
|
||||
with_complete_path = False
|
||||
orig_value = value
|
||||
# Getting complete file path if the key is one of the below.
|
||||
if key in ['passfile', 'sslcert', 'sslkey', 'sslrootcert',
|
||||
'sslcrl', 'sslcrldir']:
|
||||
if key in ['passfile', 'sslcert', 'sslkey','sslcrl',
|
||||
'sslcrldir']:
|
||||
with_complete_path = True
|
||||
value = get_complete_file_path(value)
|
||||
|
||||
if key == 'sslrootcert' and value != 'system':
|
||||
dsn_args[key] = get_complete_file_path(value)
|
||||
|
||||
# If key is hostaddr and ssh tunnel is in use don't overwrite.
|
||||
if key == 'hostaddr' and self.use_ssh_tunnel:
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user