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

Mark Payne updated NIFI-8024:
-----------------------------
    Fix Version/s: 1.13.0
       Resolution: Fixed
           Status: Resolved  (was: Patch Available)

> EncryptedFileSystemRepository EOFException on null ContentClaim
> ---------------------------------------------------------------
>
>                 Key: NIFI-8024
>                 URL: https://issues.apache.org/jira/browse/NIFI-8024
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.12.1
>            Reporter: David Handermann
>            Assignee: David Handermann
>            Priority: Major
>             Fix For: 1.13.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> The following thread on the NiFi Users list describes issues with the 
> EncryptedFileSystemRepository throwing an EOFException when attempting to 
> process a null ContentClaim:
> [https://lists.apache.org/thread.html/raad9f257ab16dc5b533f89a41d44a05baaf5fe94375ba463c2d8407b%40%3Cusers.nifi.apache.org%3E]
> The following log message indicates a null ContentClaim being passed to 
> getRecordId():
> o.a.n.c.r.c.EncryptedFileSystemRepository Cannot determine record ID from 
> null content claim or claim with missing/empty resource claim ID; using 
> timestamp-generated ID: nifi-ecr-ts-34280100226468680+0
> The standard FileSystemRepository read() method checks for the presence of a 
> null ContentClaim and returns an empty ByteArrayInputStream, but the 
> EncryptedFileSystemRepository read() method attempts to decrypt the empty 
> contents, resulting in the EOFException.
> Updating the EncryptedFileSystemRepository read() method to return an empty 
> ByteArrayInputStream for a null ContentClaim should resolve the problem.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to