Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-3622

Insufficient role exception should have user friendly error message

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • jboss-fuse-6.2.1
    • jboss-fuse-6.2
    • Hawtio
    • None
    • % %
    • Hide

      1. Add a user with role viewer
      2. Login to hawtio with this user
      3. Go to http://localhost:8181/hawtio/logs

      Show
      1. Add a user with role viewer 2. Login to hawtio with this user 3. Go to http://localhost:8181/hawtio/logs

    Description

      Insufficient role exception should have user friendly error message.

      Current error message:

      Failed to get a response! { "request": { "mbean": "io.fabric8.insight:type=LogQuery", "arguments": [ "{\"afterTimestamp\":1436886542759,\"count\":20}" ], "type": "exec", "operation": "jsonQueryLogResults" }, "stacktrace": "java.lang.Exception: Insufficient roles/credentials for operation\n\tat org.jolokia.http.HttpRequestHandler.executeRequest(HttpRequestHandler.java:214)\n\tat org.jolokia.http.HttpRequestHandler.handlePostRequest(HttpRequestHandler.java:131)\n\tat org.jolokia.http.AgentServlet$3.handleRequest(AgentServlet.java:425)\n\tat org.jolokia.http.AgentServlet.handleSecurely(AgentServlet.java:320)\n\tat org.jolokia.http.AgentServlet.handle(AgentServlet.java:291)\n\tat org.jolokia.http.AgentServlet.doPost(AgentServlet.java:259)\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:595)\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:668)\n\tat org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1496)\n\tat io.hawt.web.AuthenticationFilter$2.run(AuthenticationFilter.java:166)\n\tat java.security.AccessController.doPrivileged(Native Method)\n\tat javax.security.auth.Subject.doAs(Subject.java:422)\n\tat io.hawt.web.AuthenticationFilter.executeAs(AuthenticationFilter.java:163)\n\tat io.hawt.web.AuthenticationFilter.doFilter(AuthenticationFilter.java:13g
      

      Attachments

        Activity

          People

            kearls@redhat.com Kevin Earls (Inactive)
            mbasovni Martin Basovnik (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: