You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/11/19 14:13:00 UTC

[jira] [Commented] (NIFI-8024) EncryptedFileSystemRepository EOFException on null ContentClaim

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

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

Commit dc6ba2541f13db9666a491fd3b0ce701f318f900 in nifi's branch refs/heads/main from exceptionfactory
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=dc6ba25 ]

NIFI-8024 Added null claim check to EncryptedFileSystemRepository.read() to avoid EOFException


> 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
>          Time Spent: 20m
>  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)