[ 
https://issues.apache.org/jira/browse/PHOENIX-897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gabriel Reid updated PHOENIX-897:
---------------------------------

    Attachment: PHOENIX-897.patch

Patch to quote supplied parameters before passing them to the shell in psql. 
There is a separate code path for Windows, but unfortunately I don't have a 
Windows system to test it on, so if someone could give this a go on Windows 
that would be great.

> psql command doesn't allow using certain characters in invocation
> -----------------------------------------------------------------
>
>                 Key: PHOENIX-897
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-897
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Gabriel Reid
>         Attachments: PHOENIX-897.patch
>
>
> The Python psql command converts the provided command-line parameters into a 
> string, and then allows the shell to interpret the created string. If 
> characters that have a special meaning are supplied as a parameter (e.g. 
> pipe, semicolon), they are not properly quoted before being passed on to the 
> shell, causing the tool to crash with an error from the underlying shell.
> It's should be possible to provide any character (particularly common CSV 
> separator characters like pipe and semicolon) as commandline parameters, so 
> the provided parameters should be properly quoted before passing them to the 
> underlying shell.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to