[ 
https://issues.apache.org/jira/browse/SCM-514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17961875#comment-17961875
 ] 

ASF GitHub Bot commented on SCM-514:
------------------------------------

jira-importer opened a new issue, #728:
URL: https://github.com/apache/maven-scm/issues/728

   **[Subir 
S](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=subirs)** opened 
**[SCM-514](https://issues.apache.org/jira/browse/SCM-514?redirect=false)** and 
commented
   
   While executing scm:update command in 'Linux', there is a single quote which 
appears in the start and end of the argument. This causes the already existing 
arguments to have wrong syntax.
   
   mvn scm:update -Dusername=user -Dpassword=pass -X shows the following output:
   
   [DEBUG] STDERR :
   [DEBUG] Synergy : Entering getWorkingProject method
   [DEBUG] Executing: /bin/sh -c ccm query -u -f %objectname  
   --> additonal start single quote '
   "owner='user' and status='working' and type='project' and 
has_predecessor('sm-3.3:project:inhytest#1')"'  
   --> Additional end single quote
   [DEBUG] Exit code :1
   [DEBUG] STDOUT : unavailable
   [DEBUG] STDERR :Warning: Syntax error in query request:  "owner=user and 
status=working and type=project and has_predecessor(sm-3.3:project:inhytest#1)" 
 
   --> Note that now the single quotes after interpretation by the shell are 
removed.
   
   This works fine in 'Windows' platform.
   
   Correct output should be: /bin/sh -c ccm query -u -f %objectname 
"owner='user' and status='working' and type='project' and 
has_predecessor('sm-3.3:project:inhytest#1')"  
   -->No single quotes, but double quotes and inner single quotes not modified 
then.
   
   How to get this working? I have seens some changes to plexus-utils on these 
quotes, but could not understand how to workaround this. Please help.
   
   
   ---
   
   **Affects:** 1.3
   




> Quotes in CommandLine is causing failure to scm:update
> ------------------------------------------------------
>
>                 Key: SCM-514
>                 URL: https://issues.apache.org/jira/browse/SCM-514
>             Project: Maven SCM (Moved to GitHub Issues)
>          Issue Type: Bug
>          Components: maven-scm-provider-synergy
>    Affects Versions: 1.3
>         Environment: Platform OS: RHEL 5
> Java: 1.6.0_17
> Maven: 2.1.0
> Maven SCM: 1.3-SNAPSHOT
> SCM: CM/Synergy 7.0
>            Reporter: Subir S
>            Priority: Critical
>
> While executing scm:update command in 'Linux', there is a single quote which 
> appears in the start and end of the argument. This causes the already 
> existing arguments to have wrong syntax.
>  
> mvn scm:update -Dusername=user -Dpassword=pass -X shows the following output:
>  
> [DEBUG] STDERR :
> [DEBUG] Synergy : Entering getWorkingProject method
> [DEBUG] Executing: /bin/sh -c ccm query -u -f %objectname {color:red} 
> --> additonal start single quote '{color}
> "owner='user' and status='working' and type='project' and 
> has_predecessor('sm-3.3:project:inhytest#1')"' {color:red} 
> --> Additional end single quote{color} 
> [DEBUG] Exit code :1
> [DEBUG] STDOUT : unavailable
> [DEBUG] STDERR :Warning: Syntax error in query request:  "owner=user and 
> status=working and type=project and 
> has_predecessor(sm-3.3:project:inhytest#1)" {color:red} 
> --> Note that now the single quotes after interpretation by the shell are 
> removed.{color} 
> This works fine in 'Windows' platform.
>  
> Correct output should be: /bin/sh -c ccm query -u -f %objectname 
> "owner='user' and status='working' and type='project' and 
> has_predecessor('sm-3.3:project:inhytest#1')" {color:red} 
> -->No single quotes, but double quotes and inner single quotes not modified 
> then.{color} 
>  
> How to get this working? I have seens some changes to plexus-utils on these 
> quotes, but could not understand how to workaround this. Please help.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to