You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Christopher Gambino (JIRA)" <ji...@apache.org> on 2016/09/21 22:03:20 UTC

[jira] [Updated] (NIFI-2800) GetFile Processor Appends overrides last slash in filename to always be \

     [ https://issues.apache.org/jira/browse/NIFI-2800?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christopher Gambino updated NIFI-2800:
--------------------------------------
    Description: 
When using the GetFile processor all flowfiles created have an "Absolute.Path" attribute.  This absolute path is taken from the directory field of the GetFile configuration.  The last slash in the directory is always over-ridden to be '/' even when the user puts "\" in the directory structure. 

Example:
Configuraton - "Directory": "C:\Samplepath\SampleFolder\"
Output Flowfile - "Absolute.Path": "C:\Samplepath\SampleFolder/"

I believe the intended function of this should not replace the last \ with a /.  This creates issues when using the attribute in later stages with other processors such as ExecuteStreamProcess.

  was:
When using the GetFile processor all flowfiles created have an "Absolute.Path" attribute.  This absolute path is taken from the directory field of the GetFile configuration.  The last slash in the directory is always over-ridden to be '/' even when the user puts "\" in the directory structure. 

Example:
Configuraton - "Directory": "C:\Samplepath\SampleFolder\"
Output Flowfile - "Absolute.Path": "C:\Samplepath\SampleFolder/"

I believe the intended function of this should not replace the last \ with a /.  This creates issues when using the attribute in later stages with other processors such as "ExecuteStreamProcess.


> GetFile Processor Appends overrides last slash in filename to always be \
> -------------------------------------------------------------------------
>
>                 Key: NIFI-2800
>                 URL: https://issues.apache.org/jira/browse/NIFI-2800
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.0.0
>         Environment: This was discovered on a windows machine running nifi server locally
>            Reporter: Christopher Gambino
>            Priority: Minor
>
> When using the GetFile processor all flowfiles created have an "Absolute.Path" attribute.  This absolute path is taken from the directory field of the GetFile configuration.  The last slash in the directory is always over-ridden to be '/' even when the user puts "\" in the directory structure. 
> Example:
> Configuraton - "Directory": "C:\Samplepath\SampleFolder\"
> Output Flowfile - "Absolute.Path": "C:\Samplepath\SampleFolder/"
> I believe the intended function of this should not replace the last \ with a /.  This creates issues when using the attribute in later stages with other processors such as ExecuteStreamProcess.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)