Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1goMh6-0008DT-KI for pgadmin-hackers@arkaria.postgresql.org; Tue, 29 Jan 2019 06:16:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1goMh5-0004hg-FA for pgadmin-hackers@arkaria.postgresql.org; Tue, 29 Jan 2019 06:16:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1goMh5-0004hZ-6A for pgadmin-hackers@lists.postgresql.org; Tue, 29 Jan 2019 06:16:23 +0000 Received: from mail-qk1-x72d.google.com ([2607:f8b0:4864:20::72d]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1goMh1-00023L-AE for pgadmin-hackers@postgresql.org; Tue, 29 Jan 2019 06:16:22 +0000 Received: by mail-qk1-x72d.google.com with SMTP id 189so10883625qkj.8 for ; Mon, 28 Jan 2019 22:16:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=E/JAKFtBiVi4XRUh4g98kpoAW8lfVDGo2lmSXssIkeQ=; b=REX8q+alJcLRRK7QspliZ5/wnBYediPjPoq8BYPIQ+qb5EP2mrVfJ+uPRVABpzG2Uh 7FXk7LRvFjY2HI63NjiNRU/tPXzL8SS1dqTSBF94PutlkwHme1Sv77d/j9TCWccH+HOs i2hNa4ArcgnyuzmXfa8/HM+CtS6dM4IAvE6n/GkMYJVKwhrcsuADAK/RxSNfWUIJuWUZ fq6v4AKc6OjuPbl1LXmVgoiSd29qym8h+FL4r+fR/kcO2vC2XHkAKrHA7GGnNrmJWAns T/N8yraBRGQrdmkrI5OGWMo6HYhktVMvZzgv0/bB8VnNaZzs1a+b1oFGSY7/yC+t/WnJ W+Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=E/JAKFtBiVi4XRUh4g98kpoAW8lfVDGo2lmSXssIkeQ=; b=HcvJZqq73JEzsLE2EG4E6W9zki2lkowYW3p7kKtOWqCsWuMs9ePRz8oPXNCtpWE7V1 uRsroG0/xAI1yqN/TLStwhwwLg3FPEaf3RHrhLjyPGfOb2OsbNlyGkBMuNlqvlF4KnGV fRDZ5mtVQvIXQnTIiFHt9FTztFRZ1iBhbYxiZC2DSv9u9cVgLyhFy++IvNjR7URLYA96 +NZ+zJChSTqmb8q0NRSg2xAqXmMDNRHHJCSolAY8DE7fglJ4OKRpiqPIPnvznugB5Qam sZcJl3nsHElgb5QbIWnDfRqVaybndZ5ZbgseXF736vSm8dkDCR0HR/WnmifjX/wyg9Td 75gg== X-Gm-Message-State: AJcUuke2RpVwloJAUh+EkKMNDrPKwZTYA+SLohhZPy0O0MakuB4hu6HZ t3Rd1g3xABuOeQJWSTjiDgvRsMop3AG7PZXe2nGoBg== X-Google-Smtp-Source: ALg8bN5vz1GJe7XZSX7UjtkprkMgDokqKPZ5xtuS2d7fOLho1k8KfIItViDKs1fZFkkgh2BdEXNloTCEhWapcRmgYYU= X-Received: by 2002:a37:8307:: with SMTP id f7mr21740377qkd.4.1548742577510; Mon, 28 Jan 2019 22:16:17 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Akshay Joshi Date: Tue, 29 Jan 2019 11:46:06 +0530 Message-ID: Subject: Re: [pgAdmin4][RM3903] Query Tool Initialization Error To: Aditya Toshniwal Cc: pgadmin-hackers Content-Type: multipart/alternative; boundary="0000000000002e7521058092bbac" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --0000000000002e7521058092bbac Content-Type: text/plain; charset="UTF-8" Thanks patch applied. On Mon, Jan 28, 2019 at 2:32 PM Aditya Toshniwal < aditya.toshniwal@enterprisedb.com> wrote: > Hi Hackers, > > Attached is the patch to fix "Query Tool Initialization Error" which > occurs on opening query tool for some users. > The problem was, request data was sent from client but was not read by > back end service. In flask, if you receive POST data in a request you > *must* read it before returning a response. > Also removed a dead code, which was not referred/used anywhere. > > Kindly review. > > -- > Thanks and Regards, > Aditya Toshniwal > Software Engineer | EnterpriseDB Software Solutions | Pune > "Don't Complain about Heat, Plant a tree" > -- *Akshay Joshi* *Sr. Software Architect * *Phone: +91 20-3058-9517Mobile: +91 976-788-8246* --0000000000002e7521058092bbac Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks patch applied.

=
On Mon, Jan 28, 2019 at 2:32 PM Adity= a Toshniwal <aditya= .toshniwal@enterprisedb.com> wrote:
Hi Hackers,

At= tached is the patch to fix "Query Tool Initialization Error" whic= h occurs on opening query tool for some users.
The problem was, request dat= a was sent from client but was not read by back end service. In flask,=C2= =A0if you receive POST data in a reques= t you=C2=A0must=C2=A0read it before ret= urning a response.
Also removed a dead code, which was not referred/= used anywhere.

Kindly review.

--
Thanks and Regards,
Aditya Toshniwal
Software Engineer |=C2=A0EnterpriseDB Software Sol= utions |=C2=A0Pune
"Don't Complain about Heat, Plant a tr= ee"


--
Akshay Joshi
Sr. S= oftware Architect
=

Phone: +91 20-3058-9517
Mobile: +91 976-788-8246
=
--0000000000002e7521058092bbac--