Uploaded image for project: 'Pentaho Data Integration - Kettle'
  1. Pentaho Data Integration - Kettle
  2. PDI-19136

File exists: When you specify a file that does not exist, the "File type field" returns a "null" value instead of "imaginary"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Severity: Medium
    • Resolution: Unresolved
    • Affects Version/s: 8.3.0 GA, 9.1.0 GA, 9.1.0.4 GA
    • Fix Version/s: Backlog
    • Component/s: Step
    • Labels:
      None
    • Story Points:
      0
    • PDI Sub-component:
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.
    • Steps to Reproduce:
      Hide

      Steps to replicate the issue:

      1. Create the following directory on the Workstation side.
        C:\PentahoTest/
      2. Execute the attached transformation from Spoon.
      Show
      Steps to replicate the issue: Create the following directory on the Workstation side. C:\PentahoTest/ Execute the attached transformation from Spoon.

      Description

      With the File exists step, when you specify a file that does not exist then, the field File type field returns a null instead of returning imaginary. Refer to the screenshot below

      As per the document, the File type field returns 3 values, that is file, folder, or imaginary. As per the Apache VFS api document (https://commons.apache.org/proper/commons-vfs/commons-vfs2/apidocs/org/apache/commons/vfs2/FileType.html)
      IMAGINARY constant is used when a file does not exist.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            gdev Gurudev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: