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 "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2017/06/19 06:58:00 UTC
[jira] [Created] (OAK-6364) BlobStoreFixtureProvider should
configure a default 'secret' value if none specified
Chetan Mehrotra created OAK-6364:
------------------------------------
Summary: BlobStoreFixtureProvider should configure a default 'secret' value if none specified
Key: OAK-6364
URL: https://issues.apache.org/jira/browse/OAK-6364
Project: Jackrabbit Oak
Issue Type: Improvement
Components: run
Reporter: Chetan Mehrotra
Assignee: Chetan Mehrotra
Priority: Minor
Fix For: 1.8
When BlobStoreFixtureProvider constructs a S3DataStore then currently it does not configure the "secret" property. This causes issue with Tika command as it tries to convert the blobId to references which result in NPE as secret is null
{noformat}
11:56:35.915 [main] ERROR o.a.j.core.data.AbstractDataStore - Failed to hash identifier using MAC (Message Authentication Code) algorithm.
java.lang.NullPointerException: null
at org.apache.jackrabbit.core.data.CachingDataStore.getOrCreateReferenceKey(CachingDataStore.java:685) ~[oak-run-1.8-SNAPSHOT.jar:1.8-SNAPSHOT]
at org.apache.jackrabbit.core.data.AbstractDataStore.getReferenceKey(AbstractDataStore.java:141) ~[oak-run-1.8-SNAPSHOT.jar:1.8-SNAPSHOT]
at org.apache.jackrabbit.core.data.AbstractDataStore.getReferenceFromIdentifier(AbstractDataStore.java:100) ~[oak-run-1.8-SNAPSHOT.jar:1.8-SNAPSHOT]
at org.apache.jackrabbit.core.data.AbstractDataRecord.getReference(AbstractDataRecord.java:60) [oak-run-1.8-SNAPSHOT.jar:1.8-SNAPSHOT]
at org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore.getReference(DataStoreBlobStore.java:306) [oak-run-1.8-SNAPSHOT.jar:1.8-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_66]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_66]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_66]
at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_66]
{noformat}
To avoid such a behaviour the BlobStoreFixtureProvider should set "secret" to some random value if its not set already
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)