AW: Query tool does not load pgadmin 4

From: <Harald(dot)Immerheiser(at)RUV(dot)de>
To: <aditya(dot)toshniwal(at)enterprisedb(dot)com>
Cc: <pgadmin-support(at)postgresql(dot)org>
Subject: AW: Query tool does not load pgadmin 4
Date: 2020-03-13 12:38:38
Message-ID: 1fed974c670c42aeb4fe12e95eef4e35@RUV.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

Hi Aditya,

it is not a problem with the browser cache, it is a different behaviour if pgadmin is startet in the addressline oft he browser or via link clicking from an other site.
If document.referrer is empty then Query tool can start in another browser tab.
If document referrer contains another hostname then a cross site scripting police prevents access to javascript code in an other tab.

I am not a web developer but i think this has to be fxed in .html or .js code.

I will wait for 4.20

Thanks
Harald

Von: Aditya Toshniwal <aditya(dot)toshniwal(at)enterprisedb(dot)com>
Gesendet: Freitag, 13. März 2020 12:37
An: Immerheiser, Harald <Harald(dot)Immerheiser(at)RUV(dot)de>
Cc: pgAdmin Support <pgadmin-support(at)postgresql(dot)org>
Betreff: Re: Query tool does not load pgadmin 4

Hi Harald,

Try clearing the browser cache.

On Fri, Mar 13, 2020 at 3:38 PM <Harald(dot)Immerheiser(at)ruv(dot)de<mailto:Harald(dot)Immerheiser(at)ruv(dot)de>> wrote:
Hello,

I am using pgadmin 4.19 in server mode and the query editor in a new browser tab just keeps spinning and says loading.

In the Browser Console i can see th messsage:
TypeError: e.get_preference(...) is undefined

If i start the Query tool in the same window, it works fine.
(File>Preferences>Query Tool>Display>Open in new browser tab = false)

This only happens if pgAdmin is startet by clicking a Hyperlink from an Wiki an other host.
If i start pgAdmin in the addressline of the browser there is no Problem.

Regards
Harald Immerheiser

--
Thanks and Regards,
Aditya Toshniwal
pgAdmin Hacker | Sr. Software Engineer | EnterpriseDB India | Pune
"Don't Complain about Heat, Plant a TREE"

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Aditya Toshniwal 2020-03-13 13:19:40 Re: Query tool does not load pgadmin 4
Previous Message Aditya Toshniwal 2020-03-13 11:36:49 Re: Query tool does not load pgadmin 4