Unable to Set Homepage for a Space
症状
- The option to choose homepage in
Browse >> Space Admin >> Edit Space Details
is not selectable. Attempting to edit or remove this page causes the following error:
java.lang.NullPointerException at com.atlassian.confluence.pages.actions.AbstractCreateAndEditPageAction.setTitle (AbstractCreateAndEditPageAction.java:311) ...
An attempt to add the title and save the page results in the following error:
java.lang.NullPointerException at com.atlassian.confluence.pages.actions.EditPageAction.validate(EditPageAction.java:41) ...
診断
- The "Home" page is an orphaned page in space.
- There is also an additional orphaned page titled
$webwork.htmlEncode($content.displayTitle)
. This can be observed inBrowse >> Pages >> Tree View
.
原因
See the following bug reports:
ソリューション
データベースを変更する前には必ずデータをバックアップするようにします。
Confluence をシャットダウンします。
Run the following SQL query to get a list of affected pages:
SELECT contentid FROM content WHERE title IS NULL AND contenttype='PAGE';
Rename the affected pages:
UPDATE content SET title='Your Title', lowertitle='your title' WHERE contentid in (SELECT contentid FROM content WHERE title IS NULL AND contenttype='PAGE');
- Confluence を再起動します。
- Rebuild the index
最終更新日 2018 年 5 月 24 日
Powered by Confluence and Scroll Viewport.