Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bQcj7-0000fm-EJ for pgadmin-hackers@arkaria.postgresql.org; Fri, 22 Jul 2016 15:51:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bQcj7-0005pJ-0h for pgadmin-hackers@arkaria.postgresql.org; Fri, 22 Jul 2016 15:51:01 +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 1bQcit-0005bL-P2 for pgadmin-hackers@postgresql.org; Fri, 22 Jul 2016 15:50:47 +0000 Received: from mail-io0-x22c.google.com ([2607:f8b0:4001:c06::22c]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bQciq-0004FA-2X for pgadmin-hackers@postgresql.org; Fri, 22 Jul 2016 15:50:46 +0000 Received: by mail-io0-x22c.google.com with SMTP id m101so108660588ioi.2 for ; Fri, 22 Jul 2016 08:50:43 -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:content-transfer-encoding; bh=0QSqq2Z4c3IQP4G7ix1o5yuRlezQs1W1eT1NuJnutMM=; b=txuvWhTImxxZZZdaknNhE/RZUHk4A6ddQGtH/WEJ+/46co50iAUhGflh/zeRmXEBeb 8m2Csg43/YDhxIHKzFJiXYEU5WSFDtjog59RkZkegFqgrGEFDAbjQy+28/c/xPGS4D+5 0DT5M1zgc0HP984qxUWHzfOoZmJ9zVqu9Mze0XmSdrx6x3lvTF8BhyPzqGBhJnmTIycn btuasLpF0ThLLHS4rfL6SXc5Kd1ooN7htmsFe5JAHdYUYZFD3yGRgWbDs4tpxdOTsFAV V5C1l7gMxCLtaj5rjhnTBU0dwr5s8IG0zOoEJ7yWp7d44LLM9etPk00JAxNFw5O4oRoY 64Dg== 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:content-transfer-encoding; bh=0QSqq2Z4c3IQP4G7ix1o5yuRlezQs1W1eT1NuJnutMM=; b=fzxUS754/fjNcJu59+d1Ek7dPHUvpGO+wLn3n9tKy2A94pCT/hEK8IVW/pelb6rbqB MdBnpOoMMajai1DVFxfXaP74o0UiF7tq5Tn/G33fRTOUZbZ8DdZch6BBynz6faOkdeHa W/8/d3A9HNJ+Hgmr+95CosmKwD4cQin6R0wQQc0h/LBwjpIPBQYgpgfFRmR+q6/Ej3v2 mOREgsIV6cFX2OLw9z5kfuF4qkGnM6efhxX0oZ8eiRXZCNHZ9AKwd3T5zi0Si5svwe6P 91MM798i4kgwEYe3M7X8xZWg3qipa4RQ7WIWYL/HLvWt0CV4WUydEpZO3hD8vMTk10YO dbzQ== X-Gm-Message-State: AEkoousG6zeVp954P6Oggwygo4UWqE7lAai72GDfctFEWpWlBZdMashzcrb9ms2yZzKFVlq8+Y4djaLWuNYZtw== X-Received: by 10.107.160.204 with SMTP id j195mr5554207ioe.70.1469202643266; Fri, 22 Jul 2016 08:50:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.208.97 with HTTP; Fri, 22 Jul 2016 08:50:42 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Fri, 22 Jul 2016 16:50:42 +0100 Message-ID: Subject: Re: PATCH: Encoding issue with qtLiteral function (pgAdmin4) To: Murtuza Zabuawala Cc: pgadmin-hackers Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -2.6 (--) 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 Hi On Fri, Jul 22, 2016 at 3:11 PM, Murtuza Zabuawala wrote: > Hi, > > PFA patch to fix the issue when we use qtLiteral function and user enters > special characters(like emojis) which it fails to handle. > RM#1307 It still seems to be broken to me. For example, if I try to set a comment on a table to =F0=9F=98=AC, I get the following error: 2016-07-22 16:47:49,526: INFO werkzeug: 127.0.0.1 - - [22/Jul/2016 16:47:49] "GET /browser/table/msql/1/1/17251/2200/17267?id=3D17267&descript= ion=3D%F0%9F%98%AC+&columns=3D%7B%22changed%22%3A%5B%7B%22attlen%22%3Anull%= 7D%2C%7B%22attlen%22%3Anull%7D%2C%7B%22attlen%22%3Anull%7D%2C%7B%22attlen%2= 2%3Anull%7D%2C%7B%22attlen%22%3Anull%7D%5D%7D&_=3D1469202363116 HTTP/1.1" 500 - Traceback (most recent call last): File "/Users/dpage/.virtualenvs/pgadmin4/lib/python2.7/site-packages/flas= k/app.py", line 2000, in __call__ return self.wsgi_app(environ, start_response) File "/Users/dpage/.virtualenvs/pgadmin4/lib/python2.7/site-packages/flas= k/app.py", line 1991, in wsgi_app response =3D self.make_response(self.handle_exception(e)) File "/Users/dpage/.virtualenvs/pgadmin4/lib/python2.7/site-packages/flas= k/app.py", line 1567, in handle_exception reraise(exc_type, exc_value, tb) File "/Users/dpage/.virtualenvs/pgadmin4/lib/python2.7/site-packages/flas= k/app.py", line 1988, in wsgi_app response =3D self.full_dispatch_request() File "/Users/dpage/.virtualenvs/pgadmin4/lib/python2.7/site-packages/flas= k/app.py", line 1641, in full_dispatch_request rv =3D self.handle_user_exception(e) File "/Users/dpage/.virtualenvs/pgadmin4/lib/python2.7/site-packages/flas= k/app.py", line 1544, in handle_user_exception reraise(exc_type, exc_value, tb) File "/Users/dpage/.virtualenvs/pgadmin4/lib/python2.7/site-packages/flas= k/app.py", line 1639, in full_dispatch_request rv =3D self.dispatch_request() File "/Users/dpage/.virtualenvs/pgadmin4/lib/python2.7/site-packages/flas= k/app.py", line 1625, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/Users/dpage/.virtualenvs/pgadmin4/lib/python2.7/site-packages/flas= k/views.py", line 84, in view return self.dispatch_request(*args, **kwargs) File "/Users/dpage/git/pgadmin4/web/pgadmin/browser/utils.py", line 235, in dispatch_request return method(*args, **kwargs) File "/Users/dpage/git/pgadmin4/web/pgadmin/browser/server_groups/servers= /databases/schemas/tables/__init__.py", line 276, in wrap self.conn =3D self.manager.connection(did=3Dkwargs['did']) File "/Users/dpage/git/pgadmin4/web/pgadmin/utils/driver/psycopg2/__init_= _.py", line 1278, in connection raise Exception(msg_active_conn) Exception: Server has no active connection. Please connect to the server. --=20 Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company --=20 Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers