[ 
https://issues.apache.org/jira/browse/NIFI-15974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18084053#comment-18084053
 ] 

ASF subversion and git services commented on NIFI-15974:
--------------------------------------------------------

Commit 20bace89884d9fb21387b8bf5bcf72c81c4632fd in nifi's branch 
refs/heads/main from Peter Turcsanyi
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=20bace89884 ]

NIFI-15974 Fix PutSmbFile parent folder creation when path contains backslashes 
(#11288)

Also get rid of using java.io.File for processing paths as strings because it 
is platform-dependent. Use string operations instead.

> PutSmbFile fails to create recursive parent folder of path include backslashes
> ------------------------------------------------------------------------------
>
>                 Key: NIFI-15974
>                 URL: https://issues.apache.org/jira/browse/NIFI-15974
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 2.9.0
>            Reporter: Jens M Kofoed
>            Assignee: Peter Turcsanyi
>            Priority: Major
>             Fix For: 2.10.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> If the path include multiple subfolders and the path include backslashes the 
> "createMissingDirectoriesRecursively" fails.
> The method .getParent() in java.io.File does only split on forward slashes.
> A fix could be to include the following line in the 
> "createMissingDirectoriesRecursively":
> {code:java}
> pathToCreate = pathToCreate.replace('\\', '/');{code}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to