Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-19485

Windows CLI: option --resource do not work with windows path system (\ as separator)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • camel-k-1.10
    • camel-k-1.8
    • Camel-K
    • None
    • False
    • None
    • False
    • % %
    • Todo

      From failing test
      https://fuse-next-jenkins-csb-fuse-qe.apps.ocp-c1.prod.psi.redhat.com/job/camel-k/job/1.8/job/cli-win/12/console

      https://github.com/jboss-fuse/camel-k/blob/release-1.8.x/e2e/common/cli/dev_mode_test.go#L112

      Command

      kamel run file.groovy --dev --resource file:folder\tempfile@/tmp/file.txt

      will fail with error:

      Warn: --resource file:folder\tempfile@/tmp/file.txt has been deprecated. You should use --resource file:file:folder\tempfile@/tmp/file.txt instead.
      Error: could not match config, secret or file configuration as file:file:folder\tempfile@/tmp/file.txt 

      If there is a Linux path (/ instead of "\" ) or if there is no path (just filename) the command works as expected i.e:

      kamel run file.groovy --dev --resource file:folder/tempfile@/tmp/file.txt
      kamel run file.groovy --dev --resource file:tempfile@/tmp/file.txt 

      It looks like the command cannot handle Windows paths only Linux ones.

      The same test works as expected for rhel and mac binaries.

       

              pcongius Pasquale Congiusti
              mmajerni@redhat.com Mario Majernik
              Mario Majernik Mario Majernik
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: