Unable to Set Homepage for a Space

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

症状

  1. The option to choose homepage in Browse >> Space Admin >> Edit Space Details is not selectable.
  2. 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) 
    ...
    
  3. 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 in Browse >> Pages >> Tree View.

原因

See the following bug reports:

ソリューション

データベースを変更する前には必ずデータをバックアップするようにします。

  1. Confluence をシャットダウンします。

  2. Run the following SQL query to get a list of affected pages:

    SELECT contentid FROM content WHERE title IS NULL AND contenttype='PAGE';
  3. 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');
  4. Confluence を再起動します。
  5. Rebuild the index

最終更新日 2018 年 5 月 24 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.