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

Unexpected error forwarding to login page

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Duplicate
    • Component/s: core
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      Request to http://jbws.dyndns.org:8280/hudson/loginEntry?from=%2Fhudson%2F

      returns an empty page

      Apr 10, 2008 8:00:18 PM org.apache.catalina.authenticator.FormAuthenticator
      forwardToLoginPage
      WARNING: Unexpected error forwarding to login page
      javax.servlet.ServletException:
      jar:file:/usr/share/java/workspace/jbossws-hudson-3.0.1.GA/apache-tomcat/webapps/hudson/WEB-INF/lib/hudson-core-1.206.jar!/lib/hudson/queue.jelly:14:61:
      <j:if>
      org.acegisecurity.providers.anonymous.AnonymousAuthenticationToken@ffffffc4:
      Username: anonymous; Password: [PROTECTED]; Authenticated: true; Details: null;
      Granted Authorities: anonymous is missing Administer
      at org.kohsuke.stapler.MetaClass$3.dispatch(MetaClass.java:127)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:416)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:352)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:112)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

        Attachments

          Issue Links

            Activity

            Hide
            kohsuke Kohsuke Kawaguchi added a comment -

            I just tried the page you cited but I simply got the login page.

            Is that the whole stack trace? There should have been a nested exception.

            Show
            kohsuke Kohsuke Kawaguchi added a comment - I just tried the page you cited but I simply got the login page. Is that the whole stack trace? There should have been a nested exception.
            Hide
            dvrzalik dvrzalik added a comment -

            We had the same issue with hudson.jboss.org. I am not sure what the root cause
            it, but the steps to reproduce are:
            1. Enable authorization in hudson configuration page (legacy mode)
            2. Switch Hudson to the shutdown mode (Manage -> Prepare for shutdown)
            3. Schedule a build
            4. Logout

            The nested exception shown in the console is:
            Caused by: org.acegisecurity.AccessDeniedException:
            org.acegisecurity.providers.anonymous.AnonymousAuthenticationToken@ffffffc4:
            Username: anonymous; Password: [PROTECTED]; Authenticated: true; Details: null;
            Granted Authorities: anonymous is missing Administer
            at hudson.security.ACL.checkPermission(ACL.java:29)
            at hudson.Functions.checkPermission(Functions.java:417)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at
            sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at
            sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at
            org.apache.commons.jexl.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:259)
            at org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:104)
            at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83)
            at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57)
            at
            org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:51)
            at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80)
            at
            hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:71)
            at
            org.apache.commons.jelly.expression.ExpressionSupport.evaluateRecurse(ExpressionSupport.java:61)
            at
            org.apache.commons.jelly.expression.ExpressionSupport.evaluateAsBoolean(ExpressionSupport.java:71)
            at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:41)
            at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)

            The exception is obviously caused by this part of queue.jelly:
            <j:if test="${h.checkPermission(app.ADMINISTER)}">
            <a href="${rootURL}/cancelQuietDown">(${%cancel})</a>
            </j:if>

            Why is the request redirected to the login page is a mystery to me.

            Show
            dvrzalik dvrzalik added a comment - We had the same issue with hudson.jboss.org. I am not sure what the root cause it, but the steps to reproduce are: 1. Enable authorization in hudson configuration page (legacy mode) 2. Switch Hudson to the shutdown mode (Manage -> Prepare for shutdown) 3. Schedule a build 4. Logout The nested exception shown in the console is: Caused by: org.acegisecurity.AccessDeniedException: org.acegisecurity.providers.anonymous.AnonymousAuthenticationToken@ffffffc4: Username: anonymous; Password: [PROTECTED] ; Authenticated: true; Details: null; Granted Authorities: anonymous is missing Administer at hudson.security.ACL.checkPermission(ACL.java:29) at hudson.Functions.checkPermission(Functions.java:417) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.commons.jexl.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:259) at org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:104) at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83) at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57) at org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:51) at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80) at hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:71) at org.apache.commons.jelly.expression.ExpressionSupport.evaluateRecurse(ExpressionSupport.java:61) at org.apache.commons.jelly.expression.ExpressionSupport.evaluateAsBoolean(ExpressionSupport.java:71) at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:41) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262) The exception is obviously caused by this part of queue.jelly: <j:if test="${h.checkPermission(app.ADMINISTER)}"> <a href="${rootURL}/cancelQuietDown">(${%cancel})</a> </j:if> Why is the request redirected to the login page is a mystery to me.
            Hide
            dvrzalik dvrzalik added a comment -

            Adding myself to CC.

            Show
            dvrzalik dvrzalik added a comment - Adding myself to CC.
            Hide
            dvrzalik dvrzalik added a comment -

            Step 3 (Schedule a build) is not necessary.

            Show
            dvrzalik dvrzalik added a comment - Step 3 (Schedule a build) is not necessary.
            Hide
            mindless Alan Harder added a comment -

            was fixed as issue #1872

                • This issue has been marked as a duplicate of 1872 ***
            Show
            mindless Alan Harder added a comment - was fixed as issue #1872 This issue has been marked as a duplicate of 1872 ***

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              tdiesler Thomas Diesler
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: