Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-1811

'sbt cli' tests do not run on MS-Windows - echo command XML injection flawed

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: deferred
    • Component/s: Infrastructure, QA, Windows
    • Labels:
      None
    • Environment:
      MS Windows 10

      Description

      '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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              mbeckerle.dfdl Mike Beckerle
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  Tasks

                  Progress: 
                   0/0