Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bvBuo-0001iw-QH for pgadmin-hackers@arkaria.postgresql.org; Fri, 14 Oct 2016 23:29:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bvBuo-0000Up-8E for pgadmin-hackers@arkaria.postgresql.org; Fri, 14 Oct 2016 23:29:26 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bvBua-0000GI-JH for pgadmin-hackers@postgresql.org; Fri, 14 Oct 2016 23:29:12 +0000 Received: from mail-it0-x22b.google.com ([2607:f8b0:4001:c0b::22b]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bvBuW-0007QQ-VU for pgadmin-hackers@postgresql.org; Fri, 14 Oct 2016 23:29:11 +0000 Received: by mail-it0-x22b.google.com with SMTP id m138so4475345itm.0 for ; Fri, 14 Oct 2016 16:29:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=NtGW1HIXoF8JEjkYmYtafnxLV+545H05oi2RhxgR2Ak=; b=uKC2uCUt8tgmU5m39LT7R+LdYdkO33Ds5c7da8+azSL56vFtStyeaAQsLLgGUd0PrO Xo+8Pe/MMOe7WeAuzhMHwq++60xl2+IaYaI/agntpXNsQvyP2hu55PrfxD+g79abVw5J dixroj92zHtHSrsR9yFMLzBMFAS+uKDQTn6fyG5y7mrK/ub7VHSH2TB5gyTHWnHuBv9n IiMwchjT8OLWBr0JHhdb9VMi9AKuUlk7fR/+EYjLgW5JxMVuvpte0pS4EobBXoz3vf67 fpJagxzS0Sa/auoCBQvAB546tp+dNAv5fw/8+V/u/aK/An98FT3mJgTCwoza2sOrQuuC C7gA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=NtGW1HIXoF8JEjkYmYtafnxLV+545H05oi2RhxgR2Ak=; b=TUMmQXf5TPRMJabGgwjSY7/VwPWxmUuxGN0IYebA3WXPjE1DGhYVr/o7+mpaj6rCen bkpaEGf7ELcavoZ+gPeIg1EXtuQB3dfl6KiFoqerxNP385p8CmD8AO6tOnYG1biCGlMV RrH/peS0dMrxd9fl30WbGbyE0v/sLOTiBL4a/X7ezKva4ywcYD1lq+S2iMrI8g9W0RJY qa41QNj+OFctq1tAT0G/6cdNEgJk/kEbhBYuA5aefpzV57OzELqsmHSK6kFvaY1/p1jj 66+/D/aGrlDPCc6RGzDHleJpCvk3mSib65I7pmqHlG9hXsQ8YBc8ua9UEtD+Kl3NVW62 1X7Q== X-Gm-Message-State: AA6/9RlOJ19DR/m23PqA5ACtX4hm1ZN8W/1U026e0PwkXpQxxg6QUspKZqjcbV2hfOZDkkpoP6suxj0WVQVY2A== X-Received: by 10.36.6.130 with SMTP id 124mr546406itv.94.1476487747397; Fri, 14 Oct 2016 16:29:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.146.135 with HTTP; Fri, 14 Oct 2016 16:29:06 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Sat, 15 Oct 2016 00:29:06 +0100 Message-ID: Subject: Re: [pgAdmin4][Patch]: Fixed RM 1603 & RM 1220 To: Khushboo Vashi Cc: pgadmin-hackers Content-Type: multipart/alternative; boundary=001a1143758ab2fc89053edb97f4 X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org --001a1143758ab2fc89053edb97f4 Content-Type: text/plain; charset=UTF-8 Hi On Friday, October 14, 2016, Khushboo Vashi wrote: > Hi, > > Please find the attached patch to fix the below 2 bugs. > > RM 1603: [Web Based] Export database failed if object contains double > quotes. > RM 1220: Backup database is not working with special characters > > The issues which were fixed: > > 1. Client side data were not unescaped > 2. Required command line arguments were quoted twice > This is not working for me: I tested using Table Export as per Fahar's instructions. As I'm in desktop mode, the first problem was that we get an error at line 210 of import_export/__init__.py, because get_server_directory returned None for the directory. If I fix that, then the job says it's created, but as far as I can see, nothing else happens. Secondly, this patch seems to push quoting responsibilty to the front end. This doesn't seem right, because we might want to use the RESTful APIs for another purpose in the future, which would mean needing to re-implement quoting if something else uses an affected API. Thanks. -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company --001a1143758ab2fc89053edb97f4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi

On Friday, October 14, 2016, Khushboo Vashi <khushboo.vashi@enterprisedb.com> w= rote:
Hi,

=
Please find the attached patch to fix the below 2 bugs.

=
RM 1603:=C2=A0[Web Based] Export database failed if object conta= ins double quotes.
RM=C2=A01220: Backup database is not working w= ith special characters

The issues which were fixed= :

1. Client side data were not unescaped
2. Required command line arguments were quoted twice=C2=A0

This is not working for me: I tested using Tab= le Export as per Fahar's instructions. As I'm in desktop mode, the = first problem was that we get an error at line 210 of import_export/__init_= _.py, because get_server_directory returned None for the directory. If I fi= x that, then the job says it's created, but as far as I can see, nothin= g else happens.=C2=A0

Secondly, this patch seems t= o push quoting responsibilty to the front end. This doesn't seem right,= because we might want to use the RESTful APIs for another purpose in the f= uture, which would mean needing to re-implement quoting if something else u= ses an affected API.

Thanks.


--
D= ave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB U= K: http://www.ent= erprisedb.com
The Enterprise PostgreSQL Company

--001a1143758ab2fc89053edb97f4--