Uploaded image for project: 'Rave'
  1. Rave
  2. RAVE-478

Portal does not start without pre-population from initial_data.sql

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 0.8-INCUBATING
    • 0.9-INCUBATING
    • None
    • None

    Description

      DefaultPagePermissionEvaluator and DefaultPageService (and maybe other components) do a call in the constructor to PageTypeRepository to fetch values from the database. This only works if the portal is started with the initial_data.sql population script. This script only works on H2 (and possibly MySQL) but does not work in PostgreSQL or Oracle.
      Without a pre populated database these calls throw an NPE and as a result the /portal context is not loaded at all.

      The constructor of components should not rely on a populated database or should use default values if the database is empty.

      Attachments

        Activity

          People

            jasha Jasha Joachimsthal
            jasha Jasha Joachimsthal
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: