[ 
https://issues.apache.org/jira/browse/OAK-6364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chetan Mehrotra resolved OAK-6364.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.7.2

Done with 1799156. Now for any caching datastore a default value for "secret" 
property is set if none is specified

> 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, 1.7.2
>
>
> 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)

Reply via email to