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 "Thomas Mueller (JIRA)" <ji...@apache.org> on 2017/01/11 13:44:58 UTC
[jira] [Commented] (OAK-4529) DocumentNodeStore does not have a
repository software version range check.
[ https://issues.apache.org/jira/browse/OAK-4529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15818375#comment-15818375 ]
Thomas Mueller commented on OAK-4529:
-------------------------------------
It might be possible to open the repository in read-only mode; for that, then a "read" and a "write" version could be used, as this is done in SQLite for example (https://www.sqlite.org/fileformat.html - File Format Version Numbers). So that it's possible to open a repository in read-only mode, if the read-version is the same. (copied from mail thread "issues introducing non-reversible changes in the repository")
> DocumentNodeStore does not have a repository software version range check.
> --------------------------------------------------------------------------
>
> Key: OAK-4529
> URL: https://issues.apache.org/jira/browse/OAK-4529
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: core
> Affects Versions: 1.2.14, 1.0.31, 1.5.4, 1.4.4
> Reporter: Ian Boston
>
> DocumentNodeStore does not currently check which software version the persisted repository it is connecting to was created with or last updated. There is a risk that if the versions are incompatible the repository may be damaged.
> Somewhere in the repository, the version of the software that created it, and the versions that written to it should be stored. In the case of TarMK this information could be on local disk near the TarMK files. In the case of a DocumentMK implementation, the information should be stored in the "database" itself.
> When a DocumentNodeStore instance connects it should: check the versions stored in the repository then check the versions are within a compatible range and refuse to start if not.
> When a DocumentNodeStore writes to a repository, it should add its version to the list of versions that have updated the repository.
> This check behaviour should be active in full Oak or any utilities (eg oak-run).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)