[
https://issues.apache.org/jira/browse/OAK-7570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16524255#comment-16524255
]
Alexander Klimetschek commented on OAK-7570:
--------------------------------------------
[~mduerig]
1) PR
Sure, the PR is not meant to be reviewed by looking at the individual commits.
It can be seen as a single diff on Github under the [Files
changed|https://github.com/apache/jackrabbit-oak/pull/88/files] tab or
downloaded as a single patch file for local viewing by [appending .patch to the
URL|https://patch-diff.githubusercontent.com/raw/apache/jackrabbit-oak/pull/88.patch].
Splitting it up is probably not straightforward... other than the possible move
of the jcr api extension to jackrabbit-api. [~mattvryan] wdyt?
If you haven't seen it, the [Direct Binary
Access|https://wiki.apache.org/jackrabbit/Direct%20Binary%20Access] wiki page
has diagrams & explanation of the changes in the code that should help.
2) Layers
We just very recently started to rely on ReferenceBinary for
getHttpDownloadURL() –
[here|https://github.com/apache/jackrabbit-oak/pull/88/files#diff-190f7c0d7156c8ab24c49208f9eb04f2R882].
Before that we had to make the choice between inlined and external blob inside
the SegmentNodeStore implementation, because otherwise it's hidden behind the
NodeStore. So that might be some old history now...
However, I am not sure how it would be possible to get access to the BlobStore
in the higher layers (namely oak-jcr). I would expect that SessionImpl should
not have access to the configuration Builders at runtime. The way it's now is
simply adding the feature cleanly on all API layers: JCR, Oak Tree, NodeStore,
BlobStore and DataStore. Because it is a new feature on every layer...
especially for upload, and needs to go through a permission check in
SessionImpl, tied to a user session.
> [DirectBinaryAccess][DISCUSS] Client access via DataStoreBlobStore directly
> ---------------------------------------------------------------------------
>
> Key: OAK-7570
> URL: https://issues.apache.org/jira/browse/OAK-7570
> Project: Jackrabbit Oak
> Issue Type: Technical task
> Components: blob-plugins
> Reporter: Matt Ryan
> Assignee: Matt Ryan
> Priority: Major
>
> Open discussion related to OAK-7569:
> The [original pull request|https://github.com/apache/jackrabbit-oak/pull/88]
> proposes changes to oak-api, oak-segment-tar, oak-store-document, oak-core,
> and oak-jcr as well as oak-blob-plugins, oak-blob-cloud, and oak-blob-azure.
> Would it be possible / better to keep the changes local to the oak-blob-*
> bundles and avoid making changes throughout the stack?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)