Class PublicSchemaHealthCheck

All Implemented Interfaces:
HealthCheck

public class PublicSchemaHealthCheck extends HealthCheckTemplate
A HealthCheck that looks in the entityengine.xml for a specific misconfiguration, the combination of setting schema-name to PUBLIC (upper case) on a database other than H2 or HSQL. The check can be disabled by setting the system property "atlassian.jira.dbcheck.publicschemaconfig.disabled" to true.
Since:
7.4
  • Constructor Details

    • PublicSchemaHealthCheck

      public PublicSchemaHealthCheck(HealthCheck... prerequisites)
  • Method Details

    • getApplicablePhases

      protected Set<LifecyclePhase> getApplicablePhases()
      Specified by:
      getApplicablePhases in class HealthCheckTemplate
    • doPerform

      protected List<HealthCheckResult> doPerform()
      Specified by:
      doPerform in class HealthCheckTemplate
    • performCheck

      public List<HealthCheckResult> performCheck(org.ofbiz.core.entity.config.DatasourceInfo datasourceInfo)
      Run this check with a particular DatasourceInfo instance. This is used as a HealthCheck on startup, and a test when configuring a new connection.
      Parameters:
      datasourceInfo - the data source to check
      Returns:
      a HealthCheckResult if the check fails, otherwise Optional.empty()