How to direct the 'Space Admin' link to go to 'Space Permissions' instead of 'Space Details'

お困りですか?

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

コミュニティに質問

目的

For spaces that are very large, there's a Confluence bug that affects performance when a Space Administrator navigates to Browse > Space Admin CONF-21575 - Getting issue details... STATUS

The reason is that the Space Admin link defaults to the Space Details page, which among other things will allow the administrator to set the Space Homepage. the Homepage drop-down will try to populate with every single page in the space, resulting in an enormous performance hit for spaces that contain lots of pages.

ソリューション

 One workaround is to direct the Space Admin link to go to Space Permissions.

The below was written based on Confluence 3.5.x specifically. The files may look different if using other versions of Confluence.

  1. Locate <confluence_install>/confluence/WEB-INF/lib/confluence-x.x.x.jar on the Confluence server.
  2. Extract /plugins/space-tabs.xml from within the .jar file, and open it in a text editor.
  3. Locate the following portion:

    	<web-item key="space-administration" name="Admin Tab" section="system.space" weight="70">
    		<label key="space.admin" />
    		<link linkId="space-admin-link">/spaces/editspace.action?key=$generalUtil.urlEncode($helper.spaceKey)</link>
            <condition class="com.atlassian.confluence.plugin.descriptor.web.conditions.HasSpaceCondition"/>
            <condition class="com.atlassian.confluence.plugin.descriptor.web.conditions.SpacePermissionCondition">
                <param name="permission">administer</param>
            </condition>
            <tooltip key="browse.space.admin">
                <param name="param1">$helper.space.name</param>
            </tooltip>
        </web-item>
  4. Change 'editspace.action' to 'spacepermissions.action', and save the modified XML file.
  5. Place this modified XML file in the following location, which overrides the default one from the .jar file: confluence_install/confluence/WEB-INF/classes/plugins/space-tabs.xml
  6. Confluence を再起動します。
最終更新日: 2016 年 2 月 26 日

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

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