You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@daffodil.apache.org by "Mark C. Otto (JIRA)" <ji...@apache.org> on 2019/01/24 22:06:00 UTC

[jira] [Commented] (DAFFODIL-1811) 'sbt cli' tests do not run on MS-Windows - echo command XML injection flawed

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

Mark C. Otto commented on DAFFODIL-1811:
----------------------------------------

No need for Cygwin or other things. Fixed as part of DAFFODIL-2058.

> 'sbt cli' tests do not run on MS-Windows - echo command XML injection flawed
> ----------------------------------------------------------------------------
>
>                 Key: DAFFODIL-1811
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-1811
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Infrastructure, QA, Windows
>         Environment: MS Windows 10
>            Reporter: Michael Beckerle
>            Assignee: Mark C. Otto
>            Priority: Major
>
> 'sbt cli' runs on Linux, but not windows - there are failures due to the way the echo command is used to inject XML text into the stdin of the CLI. The echo command in MS Windows does not work the same way as Linux echo. (BTW: Linux echo is deprecated, and should be using bash printf instead).
> The command echo '<x/>' fails on windows. The can't tolerate the < or > characters, and various quoting attempts don't seem to be able to overcome this.
> Installing cygwin, and running sbt cli from the cygwin bash shell is not alone sufficient to fix this problem. Probably PATH settings and/or other environment variables are required to be set up.
> Instructions about installing Cygwin have been removed from the Wiki for now, as they are not needed to get regular old 'sbt test' to work.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)