Navigation throws exception when previously existing system page type was removed

Description

After programatically removing a system page type the underlying, still existing entry in psys_page causes the core website navigation to crash. The SiteTreeService doesn't handle the exception thrown by PageTypeService.

Since system pages can't be manually removed there's no way to deal with this except deleting the page from the database which is sometimes difficult and painful during programming when switching branches.

It might be good if Preside dealt with that in a more convenient way by either ignoring invalid page records or deprecation (similar to how database fields are handled when presideobjects are modified) of some sort.

Environment

None

Assignee

Unassigned

Reporter

Sacha Moufarrege

Accepted

None

Affects versions

Priority

Medium
Configure