jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrei Dulceanu (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (OAK-7815) Obscure error message if AZURE_SECRET_KEY env variable is not set for Azure persistence
Date Wed, 10 Oct 2018 13:30:00 GMT

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

Andrei Dulceanu resolved OAK-7815.
----------------------------------
    Resolution: Fixed

Fixed at r1843449.

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

Mime
View raw message