Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
0.8-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.