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

Marcel Reutegger commented on OAK-7569:
---------------------------------------

The {{NamePathMapper.DEFAULT}} should only be used when names and paths have 
already been mapped to the internal representation, which is the case in layers 
below oak-jcr. E.g. using {{NamePathMapper.DEFAULT}} in oak-core  doesn't 
necessarily mean it's a problem.

The static methods on {{ValueFactoryImpl}} all wrap a {{Value}} around an 
existing {{PropertyState}}. Those methods don't need a {{Root}}, which is 
otherwise available in a {{ValueFactoryImpl}} instance. I think it should be 
possible to prevent additional technical debt (more static methods) with some 
refactoring. I'll prepare a patch to illustrate the approach.

Regarding the options you mentioned:
- b) Simply counting usages of {{NamePathMapper}} is misleading. There are a 
few places we need to look at additionally, but usages of the value factory 
methods gives a better indication.
- c) Whenever a {{NamePathMapper.DEFAULT}} is used, the code assumes a name has 
already been mapped to the internal representation. Using the session mapping 
instead would be wrong.

> Direct Binary Access
> --------------------
>
>                 Key: OAK-7569
>                 URL: https://issues.apache.org/jira/browse/OAK-7569
>             Project: Jackrabbit Oak
>          Issue Type: New Feature
>          Components: api, blob-cloud, blob-cloud-azure, blob-plugins
>            Reporter: Matt Ryan
>            Assignee: Matt Ryan
>            Priority: Major
>         Attachments: OAK-7569-api-javadoc-improvements.patch
>
>
> Provide a direct binary access feature to Oak which allows an authenticated 
> client to create or download blobs directly to/from the blob store, assuming 
> the authenticated user has appropriate permission to do so. The primary value 
> of this feature is that the I/O of transferring large binary files to or from 
> the blob store can be offloaded entirely from Oak and performed directly 
> between a client application and the blob store.
> This feature is described in more detail [on the Oak 
> wiki|https://wiki.apache.org/jackrabbit/Direct%20Binary%20Access].
> This feature is similar in functionality to OAK-6575.  It adds the capability 
> to also upload directly to storage via preauthorized URLs in addition to 
> downloading directly from storage via preauthorized URLs.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to