Log analyzer failed to scan the logs since Confluence 8.7.1

XMLWordPrintable

    • 1
    • Severity 3 - Minor

      Issue Summary

      Log analyzer failed to scan the logs since Confluence 8.7.1

      This is reproducible on Data Center: yes

      Steps to Reproduce

      1. Install Confluence 8.7.1
      2. Setup Confluence normally
      3. Once setup is completed;
      4. Go to General Configuration > Troubleshooting and support tools
      5. Select Log analyzer tab
      6. Click Scan

      Expected Results

      Log analyzer proceeds to scan the selected log.

      Actual Results

      There's an error displaying "Scan failed" in the UI:

      Error message below can be found in the log:

      2024-02-12 15:27:11,078 WARN [http-nio-6871-exec-6 url: /c871/plugins/servlet/troubleshooting/view/hercules/view; user: admin] [troubleshooting.stp.hercules.SupportToolsHerculesScanAction] prepare Log scan failed
       -- url: /c871/plugins/servlet/troubleshooting/view/hercules/view | userName: admin | referer: http://localhost:6871/c871/plugins/servlet/troubleshooting/view/ | traceId: d877b43b9152355b
      java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: The provided url- https://confluence.atlassian.com/download/attachments/179443532/confluence_regex_v2.xml is not included in the whitelist!.Please add the url to whitelist to allow access
      ...
      Caused by: java.lang.IllegalArgumentException: The provided url- https://confluence.atlassian.com/download/attachments/179443532/confluence_regex_v2.xml is not included in the whitelist!.Please add the url to whitelist to allow access
      

      Test Environments

      Tested on the Confluence versions below:

      • Confluence 8.5.5
      • Confluence 8.6.2
      • Confluence 8.7.1
      • Confluence 8.7.2
      • Confluence 8.8.0

      ATST Version doesn't matter

      Despite updating ATST, the affected Confluence versions above don't change:

      • Confluence 8.6.2 with ATST v1.51.2
      • Confluence 8.7.1 with ATST v1.51.2

      Workaround

      1. Go to General Configuration > Allowlist
      2. Add a new entry with the attributes below:
        Type Domain name
        Expression https://confluence.atlassian.com
        Allow incoming Not Required
        Allow anonymous users Not Required

        Make sure the URL in Expression doesn't end with a trailing slash (/)

            Assignee:
            Marcin Walerianczyk
            Reporter:
            Damien Tan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: