Re: [pgAdmin][RM4279] : Issue with File Browser Home button

Поиск
Список
Период
Сортировка
От Neel Patel
Тема Re: [pgAdmin][RM4279] : Issue with File Browser Home button
Дата
Msg-id CACCA4P1qHgv7LqzE-VP_o60riVAgboyrq9mtHj=PBJFGKtV0ew@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [pgAdmin][RM4279] : Issue with File Browser Home button  (Akshay Joshi <akshay.joshi@enterprisedb.com>)
Ответы Re: [pgAdmin][RM4279] : Issue with File Browser Home button
Список pgadmin-hackers
Hi,

In windows desktop mode, it gives below error on console log while opening file dialog.

Screenshot 2020-04-27 at 1.11.59 PM.png

Thanks,
Neel Patel

On Mon, Apr 27, 2020 at 1:22 PM Akshay Joshi <akshay.joshi@enterprisedb.com> wrote:
Hi Yogesh

Tested on MAC OSX in both the mode (server, desktop) it is showing "/". Please reverify it.  

On Mon, Apr 27, 2020 at 10:58 AM Yogesh Jain <yogesh.jain@enterprisedb.com> wrote:
Hi Hackers,

I have tested this patch in linux (Ubuntu 18.04) env only , which is working fine. It will be great if someone can review/test in the Windows environment as well as I don't have the setup ready for that.

On Mon, Apr 27, 2020 at 10:47 AM Yogesh Jain <yogesh.jain@enterprisedb.com> wrote:
Hi Aditya,

Thanks for the feedback. Here is an updated patch, regarding the same.

Please Review.
PFA.

On Mon, Apr 27, 2020 at 9:05 AM Aditya Toshniwal <aditya.toshniwal@enterprisedb.com> wrote:
Hi Yogesh,

Just did an eyeball review. You've included homedir path in the response rendered JS file. You're exposing underlying directory structure to users even in server mode. This is not appropriate. This info should remain at the server and not at the client side.
+        homedir=os.path.expanduser('~'),

On Fri, Apr 24, 2020 at 7:26 PM Yogesh Jain <yogesh.jain@enterprisedb.com> wrote:
Hi Hackers,

Attached is the patch to fix the issue with the file browser Home button.
 
FYI : While clicking on the home button it was pointing to the user's root directory rather than home directory, which is fixed in this patch.

Please review.
PFA.

--
Regards,
Yogesh Jain
8982696654


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


--
Regards,
Yogesh Jain
8982696654


--
Regards,
Yogesh Jain
8982696654


--
Thanks & Regards
Akshay Joshi
Sr. Software Architect
EnterpriseDB Software India Private Limited
Mobile: +91 976-788-8246
Вложения

В списке pgadmin-hackers по дате отправления:

Предыдущее
От: Akshay Joshi
Дата:
Сообщение: Re: [pgAdmin4][Patch] - Improve LDAP Error messages
Следующее
От: Akshay Joshi
Дата:
Сообщение: pgAdmin 4 commit: Added title to the login page. Fixes #5430