How to suppress AuthorizationLoggerListener Authorization failed warnings in logs

お困りですか?

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

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

目的

The following warning message appears every time someone tries to access Bamboo and:

  1. The person is not logged into the application.
  2. The application is not set to allow anonymous access.
2016-05-19 12:16:30,076 WARN [http-nio-8085-exec-10] [AuthorizationLoggerListener] Authorization failed: org.acegisecurity.AccessDeniedException: Access is denied; authenticated principal: org.acegisecurity.providers.anonymous.AnonymousAuthenticationToken@90545b24: Username: anonymousUser; Password: [PROTECTED]; Authenticated: true; Details: org.acegisecurity.ui.WebAuthenticationDetails@12afc: RemoteIpAddress: 127.0.0.1; SessionId: 9009636C1598DF73F10F42AC9C238B5C; Granted Authorities: ROLE_ANONYMOUS; secure object: com.atlassian.bamboo.webwork.StarterAction@5f36e48; configuration attributes: [WW_READ, GLOBAL_READ]

The person is then redirected to the Bamboo Login page. If anonymous access is allowed, this does not show up in the logs.

It is possible to suppress these entries if you would like to omit them from your logs.

ソリューション

For Bamboo versions prior 9

  1. Open your log4j.properties file, which is located at $BAMBOO_INSTALL/atlassian-bamboo/WEB-INF/classes/log4j.properties
  2. Add the following property to the end of the file: 

    log4j.category.com.atlassian.bamboo.security.acegi.acls.AuthorizationLoggerListener=ERROR
  3. Restart Bamboo for the new property to take effect

For Bamboo version 9 and above

  1. Open your log4j2.properties file, which is located at $BAMBOO_INSTALL/atlassian-bamboo/WEB-INF/classes/log4j2.properties
  2. Add the following property to the end of the file: 

    logger.bamboo-acegi.level=ERROR
    logger.bamboo-acegi.name=com.atlassian.bamboo.security.acegi.acls.AuthorizationLoggerListener
  3. Restart Bamboo for the new property to take effect


最終更新日 2022 年 8 月 18 日

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

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