[
https://issues.apache.org/jira/browse/OAK-7570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16525529#comment-16525529
]
Alexander Klimetschek commented on OAK-7570:
--------------------------------------------
1) I thought Github PRs are supported by Jackrabbit nowadays? Otherwise all the
comments and commit history would be lost.
2) What do you see as the benefit of this approach? It doesn't really make a
difference in number of files changed – AFAICS only Root & NodeStore would not
implement the HttpBlobProvider interface and proxy it through. On the other
hand is the IMO added complexity of having to change the Jcr builder class, and
potentially requiring clients setting up the {{Jcr}} repository to ensure they
don't forget this link to get the feature. Whereas I think the feature should
be fully controlled by the respective DS configuration, where you can also turn
it on and off.
3) Unfortunately, the {{ValueFactoryImpl}} has no access to the {{SessionImpl}}
needed for the permission check.
Also it seemed, apart from the {{Root.createBlob()}} connection, that the
{{ValueFactoryImpl}} has been "outsourced" by design into oak-store-spi to keep
value creation self-contained (most values don't need to talk to the Oak API /
lower layers).
Last but not least, with the final approach we had to take with the initiate &
complete step (due to the multipart upload complexities), it seemed nicer for
the API client to have this as an extension interface on the Session (easier to
get to) and to place getHttpDownloadURL() there as well (less new API
interfaces), which is something that would not fit into the ValueFactory,
because it does not create a new Value.
> [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)