public inbox for [email protected]  
help / color / mirror / Atom feed
From: Khushboo Vashi <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: [pgAdmin4][Patch] - RM 6905 - Impossible to load databases
Date: Wed, 10 Nov 2021 11:06:00 +0530
Message-ID: <CAFOhELcfcQBbXzAoHXty-dBLBeBUwzfFYOaZ89DZX7vPP5HP0Q@mail.gmail.com> (raw)

Hi,

Please find the attached patch to fix the RM #6905 - Impossible to load
databases.

The database nodes are not getting loaded *behind* *reverse proxy with SSL*.
This issue has been fixed in this patch.

Note: Yogesh helped me to setup the apache server with reverse proxy with
SSL and to reproduce the issue.

Thanks,
Khushboo


Attachments:

  [application/octet-stream] RM_6905.patch (668B, 3-RM_6905.patch)
  download | inline diff:
diff --git a/web/pgadmin/static/js/tree/tree_nodes.ts b/web/pgadmin/static/js/tree/tree_nodes.ts
index 3d75067dd..55587a1df 100644
--- a/web/pgadmin/static/js/tree/tree_nodes.ts
+++ b/web/pgadmin/static/js/tree/tree_nodes.ts
@@ -99,7 +99,7 @@ export class ManageTreeNodes {
         else {
           if (node.metadata.data._type.includes("coll-")) {
             let _type = node.metadata.data._type.replace("coll-", "")
-            url = _type + '/nodes/' + _parent_url;
+            url = _type + '/nodes/' + _parent_url + '/';
           }
           else {
             url = node.metadata.data._type + '/children/' + _parent_url + '/' + node.metadata.data._id;


view thread (13+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: [pgAdmin4][Patch] - RM 6905 - Impossible to load databases
  In-Reply-To: <CAFOhELcfcQBbXzAoHXty-dBLBeBUwzfFYOaZ89DZX7vPP5HP0Q@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox