Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-3054

jBPM Console Server can not access resources on Guvnor when security is enabled

    Details

    • Steps to Reproduce:
      Hide

      Enable Guvnor security
      Deploy a new process into Guvnor with image.
      Create a new process instance on jBPM Console.
      Try to see the instance diagram.

      Show
      Enable Guvnor security Deploy a new process into Guvnor with image. Create a new process instance on jBPM Console. Try to see the instance diagram.
    • Workaround Description:
      Hide

      As workaround I created a Servlet Filter that reads user and passwd info from jbpm.console.properties.

      Show
      As workaround I created a Servlet Filter that reads user and passwd info from jbpm.console.properties.

      Description

      If security is enabled on Guvnor, jbpm-gwt-console-server is not able to access process images and templates.
      A security exception is thrown because jbpm-gwt-console-server does not propagate any security info to Guvnor.

      2011-02-14 11:35:57,355 ERROR [STDERR] (http-0.0.0.0-8080-2) java.io.IOException: Server returned HTTP response code: 401 for URL: http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/defaultPackage/LATEST/process-list-image.png 2011-02-14 11:35:57,356 ERROR [STDERR] (http-0.0.0.0-8080-2) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441) 2011-02-14 11:35:57,356 ERROR [STDERR] (http-0.0.0.0-8080-2) at java.net.URL.openStream(URL.java:1010) 2011-02-14 11:35:57,356 ERROR [STDERR] (http-0.0.0.0-8080-2) at org.jbpm.integration.console.graph.GraphViewerPluginImpl.getDiagramURL(GraphViewerPluginImpl.java:256) 2011-02-14 11:35:57,356 ERROR [STDERR] (http-0.0.0.0-8080-2) at org.jboss.bpm.console.server.ProcessMgmtFacade.decorateProcessDefintions(ProcessMgmtFacade.java:154) 2011-02-14 11:35:57,356 ERROR [STDERR] (http-0.0.0.0-8080-2) at org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:123) 2011-02-14 11:35:57,356 ERROR [STDERR] (http-0.0.0.0-8080-2) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2011-02-14 11:35:57,356 ERROR [STDERR] (http-0.0.0.0-8080-2) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 2011-02-14 11:35:57,356 ERROR [STDERR] (http-0.0.0.0-8080-2) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2011-02-14 11:35:57,356 ERROR [STDERR] (http-0.0.0.0-8080-2) at java.lang.reflect.Method.invoke(Method.java:597) 2011-02-14 11:35:57,356 ERROR [STDERR] (http-0.0.0.0-8080-2) at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117) 2011-02-14 11:35:57,357 ERROR [STDERR] (http-0.0.0.0-8080-2) at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260) 2011-02-14 11:35:57,357 ERROR [STDERR] (http-0.0.0.0-8080-2) at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232) 2011-02-14 11:35:57,357 ERROR [STDERR] (http-0.0.0.0-8080-2) at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166) 2011-02-14 11:35:57,357 ERROR [STDERR] (http-0.0.0.0-8080-2) at org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tsurdilovic Tihomir Surdilovic
                  Reporter:
                  cristiano.nicolai Cristiano Nicolai
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: