Re: [pgadmin-hackers] Patch for RM1911 Direct file navigation [pgAdmin4] [Feature] - Mailing list pgadmin-hackers

From Dave Page
Subject Re: [pgadmin-hackers] Patch for RM1911 Direct file navigation [pgAdmin4] [Feature]
Date
Msg-id CA+OCxoy7iY3xkSwXxpHCWGu46dsFacJwSn+SA1RA2g33qvgASg@mail.gmail.com
Whole thread Raw
In response to Re: [pgadmin-hackers] Patch for RM1911 Direct file navigation[pgAdmin4] [Feature]  (Harshal Dhumal <harshal.dhumal@enterprisedb.com>)
Responses Re: [pgadmin-hackers] Patch for RM1911 Direct file navigation[pgAdmin4] [Feature]  (Harshal Dhumal <harshal.dhumal@enterprisedb.com>)
List pgadmin-hackers
Hi

On Sat, Jan 14, 2017 at 2:27 PM, Harshal Dhumal
<harshal.dhumal@enterprisedb.com> wrote:
> Hi,
>
> Pls updated patch for RM1911.
>
> 1. This includes fix for issue index out of range when user enters path of
> folder without trailing slash (showed by Dave).
> 2. To make this functionality compatible with save last used directory
> feature.

- The first test I ran gave the error seen in the attachment (running
in server mode, clicking the Browse button on the backup dialogue).

- I also noticed in reviewing the changes again, that you've got code
in sqleditor/__init__.py to stop the user moving outside of the
storage sandbox in server mode. That code should be part of the file
manager - none of the modules using it should be doing that kind of
check.

- If I do try to navigate outside of the sandbox, I get a nice error:
"Error: Access Denied (/Users/dpage/.pgadmin)" for example, if I enter
/../../. Whilst it's good to be informative, it's also a security
leak. It should only tell me the path that the user sees, not the path
as it actually is on the server - e.g.  "Error: Access Denied
(/../../../)"

-- 
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

-- 
Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers

Attachment

pgadmin-hackers by date:

Previous
From: Dave Page
Date:
Subject: Re: [pgadmin-hackers] [pgAdmin4][Patch]: RM 1730 - Role membershipcontrol display needs improvement
Next
From: Dave Page
Date:
Subject: [pgadmin-hackers] pgAdmin 4 commit: Store layout changes on each adjustment,rather than