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

Mark Payne commented on NIFI-478:
---------------------------------

Joe,

Wow, great catch! I missed the corner case where the data does not end with the 
specified byte sequence - in that case it would drop the byte sequence from the 
last split if using the "leading position." Fixed the issue and uploaded a new 
patch. New patch includes unit tests that test all of the conditions that you 
outlined above as well as a couple more.

Thanks
-Mark

> Allow SplitContent to split based on text and allow byte sequence to be 
> leading or trailing
> -------------------------------------------------------------------------------------------
>
>                 Key: NIFI-478
>                 URL: https://issues.apache.org/jira/browse/NIFI-478
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Extensions
>            Reporter: Mark Payne
>            Assignee: Mark Payne
>             Fix For: 0.1.0
>
>         Attachments: 
> 0001-NIFI-478-Added-byte-sequence-position-property-and-a.patch, 
> NIFI_478_Bug_Exposed.xml
>
>
> Currently SplitContent requires that the user encode the byte sequence to 
> split on into hexadecimal notation. User should be able to instead enter 
> UTF-8 formatted text.
> Also, it requires that if we keep byte sequence, the byte sequence between 
> two splits, the byte sequence is appended to the first split; should allow 
> user to add it as a leading byte sequence as well.



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

Reply via email to