[
https://issues.apache.org/jira/browse/RAVE-478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13212619#comment-13212619
]
Anthony Carlucci commented on RAVE-478:
---------------------------------------
Given that the PageType data is "system" data, and not meant to be modified at
all during the lifecycle of the application, I will change it to be an Enum
instead of an entity loaded from the database. It will be similar to how we
are using WidgetStatus.
> Portal does not start without pre-population from initial_data.sql
> ------------------------------------------------------------------
>
> Key: RAVE-478
> URL: https://issues.apache.org/jira/browse/RAVE-478
> Project: Rave
> Issue Type: Bug
> Affects Versions: 0.8-INCUBATING
> Reporter: Jasha Joachimsthal
> Assignee: Anthony Carlucci
> Priority: Critical
> Fix For: 0.9-INCUBATING
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira