[pgAdmin4][Patch]: SYNONYM issue if use all special characters as name

From: Surinder Kumar <surinder(dot)kumar(at)enterprisedb(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: [pgAdmin4][Patch]: SYNONYM issue if use all special characters as name
Date: 2016-10-14 14:18:06
Message-ID: CAM5-9D-zLCt6bBz1UvNpbd9R3ajNrxZNmxH=5j2QwZs0J1fQQg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi

*Issue:*
If synonym name contains special characters, the request url is be '404 not
found'.
i.e. It doesn't hit at 'sql' method of synonym.

*Solution:*
If URL has an identifier containing slash character '/' into the URI, then
set param type to path.
like /<path: int>.
Because if param name contains '/' in synonym name, it gets confused and
wrong route is formed.
Reference:- http://flask.pocoo.org/snippets/76/

Please find attached patch and review.

Thanks,
Surinder Kumar

Attachment Content-Type Size
RM1622.patch application/octet-stream 923 bytes

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dave Page 2016-10-14 17:27:19 Re: RM1849: Auto-generating security keys
Previous Message Khushboo Vashi 2016-10-14 13:31:18 Re: [pgAdmin4][Patch]: Fixed RM 1603 & RM 1220