Issue Summary
Newly introduced Local backups security health check is throwing a NullPointerException in the application logs.
This is reproducible on Data Center: yes
Steps to Reproduce
- Install latest Confluence 8.5
- Update ATST to either v1.56.0 or v1.57.1
- Monitor the logs
Expected Results
The healthcheck should run without errors.
Actual Results
The below exception is thrown in the atlassian-confluence.log file:
21:46:06,254 WARN [HealthCheckWatchdog:thread-4] [healthcheck.concurrent.SupportHealthCheckTask] healthCheckError Unable to complete execution of health check Local backups security due to an exception -- url: /confluence/rest/troubleshooting/1.0/check/process/ | userName: admin | referer: http://localhost:8080/confluence/plugins/servlet/troubleshooting/view/ | traceId: a994073a096ca1ba java.util.concurrent.ExecutionException: java.lang.NullPointerException at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:205) at com.atlassian.troubleshooting.healthcheck.concurrent.SupportHealthCheckTask.getFutureWithTimeout(SupportHealthCheckTask.java:97) at com.atlassian.troubleshooting.healthcheck.concurrent.SupportHealthCheckTask.lambda$runAsync$0(SupportHealthCheckTask.java:77) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) Caused by: java.lang.NullPointerException at java.base/java.io.File.<init>(File.java:278) at com.atlassian.troubleshooting.healthcheck.checks.AbstractBackupHealthCheck.listZips(AbstractBackupHealthCheck.java:86) at com.atlassian.troubleshooting.healthcheck.checks.AbstractBackupHealthCheck.checkDirectory(AbstractBackupHealthCheck.java:95) at com.atlassian.troubleshooting.confluence.healthcheck.backup.ConfluenceBackupHealthCheck.checkImpl(ConfluenceBackupHealthCheck.java:41) at com.atlassian.troubleshooting.healthcheck.checks.AbstractBackupHealthCheck.check(AbstractBackupHealthCheck.java:59) at com.atlassian.troubleshooting.healthcheck.impl.PluginSuppliedSupportHealthCheck.check(PluginSuppliedSupportHealthCheck.java:66) ... 4 more
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available.
As this is a Health Check, it is safe to ignore this warning.
A fix for this issue is available in Confluence Server and Data Center 9.2.0. Upgrade now or check out the Release Notes to see what other issues are resolved.