Burkhard Pauli created SLING-13435:
--------------------------------------
Summary: BinaryStore: get a reference for a stored binary by its ID
Key: SLING-13435
URL: https://issues.apache.org/jira/browse/SLING-13435
Project: Sling
Issue Type: Improvement
Components: Content Distribution
Reporter: Burkhard Pauli
{{BinaryStore#put}} returns a reference, for example a signed URL. A consumer
that keeps only the binary ID, because the reference is long or expires, cannot
get a reference for that binary later.
Add {{String getReference(String id) throws IOException}} to {{BinaryStore}}.
It returns a reference for a binary stored under {{id}} with one of the {{put}}
methods. {{get}} and {{verify}} accept the returned reference, and a store with
time-limited references returns a fresh one. Package
{{org.apache.sling.distribution.journal}} goes to 1.8.0.
Use case: AEM sends one location per page to the Edge Delivery admin API for
bulk preview. Today the location is the signed URL that {{put}} returned. It
makes the job data large and keeps long-lived tokens in it. With
{{getReference}}, AEM sends the blob ID and creates the signed URL when the
page is fetched.
Follow-up to SLING-12780.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)