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 "Davide Giannella (JIRA)" <ji...@apache.org> on 2018/11/06 10:29:05 UTC
[jira] [Closed] (OAK-7815) Obscure error message if
AZURE_SECRET_KEY env variable is not set for Azure persistence
[ https://issues.apache.org/jira/browse/OAK-7815?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davide Giannella closed OAK-7815.
---------------------------------
Bulk close 1.9.10
> Obscure error message if AZURE_SECRET_KEY env variable is not set for Azure persistence
> ---------------------------------------------------------------------------------------
>
> Key: OAK-7815
> URL: https://issues.apache.org/jira/browse/OAK-7815
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: segment-azure
> Affects Versions: 1.9.9
> Reporter: Andrei Dulceanu
> Assignee: Andrei Dulceanu
> Priority: Minor
> Fix For: 1.9.10
>
>
> Trying to create a new Azure Segment Persistence when the {{AZURE_SECRET_KEY}} is not correctly set, fails with obscure message:
> {noformat}
> Apache Jackrabbit Oak 1.10-SNAPSHOT
> Exception in thread "main" java.lang.IllegalArgumentException: The String is not a valid Base64-encoded string.
> at com.microsoft.azure.storage.core.Base64.decode(Base64.java:63)
> at com.microsoft.azure.storage.StorageCredentialsAccountAndKey.<init>(StorageCredentialsAccountAndKey.java:81)
> at org.apache.jackrabbit.oak.segment.azure.tool.ToolUtils.createCloudBlobDirectory(ToolUtils.java:126)
> at org.apache.jackrabbit.oak.segment.azure.tool.ToolUtils.newSegmentNodeStorePersistence(ToolUtils.java:98)
> at org.apache.jackrabbit.oak.segment.azure.tool.AzureCompact.run(AzureCompact.java:161)
> at org.apache.jackrabbit.oak.run.CompactCommand.execute(CompactCommand.java:74)
> at org.apache.jackrabbit.oak.run.Main.main(Main.java:49){noformat}
> It would be nice to have here a more informative message regarding the needed environment variable.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)