Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-83710

Move hsql database default to Setup Wizard

    Details

      Description

      Rationale: Currently, if you don't configure anything differently, hsql will be the default database for a bundle when it starts. The first start will unconditionally start the setup wizard (unless manually disabled before).

      Thus, the setup wizard would be a perfect place to configure a default database for Liferay.

      Drawback with the current way hsql is introduced as the default: In case someone manually configures a database and introduces a typo in the configuration, e.g.

      jbdc.default.driverClassName=oracle.jdbc.OracleDriver

      and related settings (notice j*bd*c instead of j*db*c), Liferay will transparently work, just not on the intended Oracle database. And this will be barely identifiable. I'd rather like to see it fail fast with an unconfigured database than defaulting to a database that's unsupported in production.

      This can be implemented without any impact for users, if the setup wizard just introduces the proper hsql settings whenever a user selects hsql, instead of relying on default settings from portal.properties.

      While we're at it: Why not enable the Setup Wizard to configure Liferay to use JNDI datasources?

        Attachments

          Activity

            People

            • Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              olaf.kock Olaf Kock
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Packages

                Version Package