You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Francesco Mari (JIRA)" <ji...@apache.org> on 2016/11/01 17:32:59 UTC

[jira] [Resolved] (OAK-4396) HttpStore.containsSegment throws SNFE instead of returning false for non existing segments

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

Francesco Mari resolved OAK-4396.
---------------------------------
    Resolution: Fixed

In the meantime, I fixed this at r1767527.

> HttpStore.containsSegment throws SNFE instead of returning false for non existing segments
> ------------------------------------------------------------------------------------------
>
>                 Key: OAK-4396
>                 URL: https://issues.apache.org/jira/browse/OAK-4396
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: segment-tar
>            Reporter: Michael Dürig
>            Assignee: Francesco Mari
>            Priority: Minor
>
> That method tries to check existence of a segment by checking the return value of {{readSegment}} for {{null}}. However, this method never returns {{null}} but throws a {{SNFE}} for non existing segments. 



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