[
https://issues.apache.org/jira/browse/NIFI-3555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pierre Villard resolved NIFI-3555.
----------------------------------
Resolution: Feedback Received
Apache NiFi 1.x is no longer maintained and no new release is planned on the
1.x release line. Marking as resolved as part of a cleanup operation. Please
open a new one with an updated description if this is still relevant for NiFi
2.x.
> UpdateAttribute on filename adds extra space
> --------------------------------------------
>
> Key: NIFI-3555
> URL: https://issues.apache.org/jira/browse/NIFI-3555
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core UI
> Affects Versions: 1.1.1
> Environment: Linux, Fedora 25, Nifi 1.1.1
> Reporter: Uwe Geercken
> Priority: Minor
>
> I have used the GetFile and then SplitText processors to split a csv file
> into rows.
> Here is the original filename:
> allCountries_100.txt
> Then I have created an Expression in the UpdateAttribute processor:
> ${filename:substringBefore('.'):append('_fragment_'):append(${fragment.index}):append('_details.csv')}
>
> It creates a new filename by using the original filename plus the fragment
> number from the SplitText processor and adds a string at the end.
> In the output of the PutFile processor all files have an extra space at the
> end behing the ".csv".
> here is an example:
> allCountries_100_fragment_35.csv
> please note the extra space at the end.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)