Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-27925

Google Storage badly handles authentication parameters

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.10
    • Fix Version/s: 10.10-HF14, 11.1, 2021.0
    • Component/s: BlobManager

      Description

      When configuring nuxeo.conf to configure the Google Storage, it ends up than we need to copy-paste the whole JSON file generated by Google Cloud Console. It implies severals problems:

      • Authentication Information are repeated (as the JSON contains the bucket name, bucket region...)
      • The JSON is not read correctly "as it" and generates the following error:
      Caused by: com.fasterxml.jackson.core.JsonParseException: Illegal unquoted character ((CTRL-CHAR, code 10)): has to be escaped using backslash to be included in string value
       at [Source: (ByteArrayInputStream); line: 1, column: 161]
      

      This is because double backslashes are badly interpreted. So we need to adapt the JSON manually and remove one "\".

      Original and Modified JSON in comment.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours
                  3h