Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-7815

Obscure error message if AZURE_SECRET_KEY env variable is not set for Azure persistence

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9.9
    • 1.10.0, 1.9.10
    • segment-azure
    • None

    Description

      Trying to create a new Azure Segment Persistence when the AZURE_SECRET_KEY is not correctly set, fails with obscure message:

      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)

      It would be nice to have here a more informative message regarding the needed environment variable.

      Attachments

        Activity

          People

            adulceanu Andrei Dulceanu
            adulceanu Andrei Dulceanu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: