Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-1250

Enabling matrix-based security results in 500

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • _unsorted
    • None
    • Platform: All, OS: All

      Sorry, I wrote in Japanese.

      --------------------------------------------------

      バグ再現環境
      WindowsXP SP2
      jdk6u3
      Hduson 1.175,1.176
      サーブレットコンテナは内蔵のWinstone

      「システムの設定」から認証を有効にし、ユーザを追加します。
      「システムの設定」で、「権限管理」を変更(「Anyone can do anything」から「行列に
      よる権限設定」に)します。
      そうすると、エラーが発生します。

      知人が言うに、OSはMacOSXとUbuntuでも内蔵のWinstoneとTomcatを使っても発生するそう
      です。
      なので、環境依存のバグではないと思われます。

      --------------------------------------------------

      error log

      Status Code: 500
      Exception:
      Stacktrace:

      org.acegisecurity.AccessDeniedException:
      org.acegisecurity.providers.UsernamePasswordAuthenticationToken@4e4cd182:
      Username: hudson.security.HudsonPrivateSecurityRealm$Details@bd3b2d; Password:
      [PROTECTED]; Authenticated: true; Details: null; Granted Authorities:
      authenticated, admin is missing Read
      at hudson.security.ACL.checkPermission(ACL.java:28)
      at hudson.model.View.checkPermission(View.java:102)
      at hudson.model.Hudson.getTarget(Hudson.java:2169)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:309)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:298)
      at hudson.security.AccessDeniedHandlerImpl.handle(AccessDeniedHandlerImpl.java:51)
      at
      org.acegisecurity.ui.ExceptionTranslationFilter.handleException(ExceptionTranslationFilter.java:229)
      at
      org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:176)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55)
      at
      org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55)
      at
      org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55)
      at
      org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55)
      at
      org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55)
      at
      org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55)
      at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:44)
      at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:85)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
      at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
      at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
      at java.lang.Thread.run(Unknown Source)

            Unassigned Unassigned
            cactusman cactusman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: