Uploaded image for project: 'ACE'
  1. ACE
  2. ACE-427

Disabling authentication in WebUI trigger a NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 2.0.1
    • Authentication, UI
    • None
    • Mac OSX. Sun JDK 1.7.0-25_b15.

    Description

      The affected version is actually on SVN in the trunk, revision 1524399

      Disabling the authentication by setting ui.authentication.enabled = false in conf/org.apache.ace.webui.vaadin.cfg generates a nullpointerexception when loading the page.

      2013.11.10 23:54:38 WARNING - Bundle: org.apache.ace.webui.vaadin - Login failed! Destroying session... - java.lang.NullPointerException
      at org.apache.ace.webui.vaadin.ShortcutHelper.getPlatformSpecificModifier(ShortcutHelper.java:81)
      at org.apache.ace.webui.vaadin.ShortcutHelper.addCrossPlatformShortcut(ShortcutHelper.java:34)
      at org.apache.ace.webui.vaadin.VaadinClient.addCrossPlatformAddShortcut(VaadinClient.java:484)
      at org.apache.ace.webui.vaadin.VaadinClient.createAddArtifactButton(VaadinClient.java:549)
      at org.apache.ace.webui.vaadin.VaadinClient.createArtifactToolbar(VaadinClient.java:723)
      at org.apache.ace.webui.vaadin.VaadinClient.initGrid(VaadinClient.java:1115)
      at org.apache.ace.webui.vaadin.VaadinClient.doLogin(VaadinClient.java:964)
      at org.apache.ace.webui.vaadin.VaadinClient.loginAutomatically(VaadinClient.java:1196)
      at org.apache.ace.webui.vaadin.VaadinClient.authenticate(VaadinClient.java:523)
      at org.apache.ace.webui.vaadin.VaadinClient.init(VaadinClient.java:339)
      at com.vaadin.Application.start(Application.java:551)
      at org.apache.ace.webui.vaadin.VaadinClient.start(VaadinClient.java:416)
      at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.startApplication(AbstractApplicationServlet.java:1219)
      at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:484)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:96)
      at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:79)
      at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java:42)
      at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:49)
      at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
      at org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java:48)
      at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39)
      at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:654)
      at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:445)
      at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)
      at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1044)
      at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:372)
      at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189)
      at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:978)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
      at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
      at org.eclipse.jetty.server.Server.handle(Server.java:369)
      at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:486)
      at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:933)
      at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:995)
      at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
      at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
      at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
      at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)
      at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
      at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
      at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
      at java.lang.Thread.run(Thread.java:724)

      My use-case (reason for me using this feature): I want to embed the server in our systems using a proxy from another Jetty instance with LDAP authentication. The webui should be accessible to our dev team while the API only accessible from authenticated networks (i.e., no authentication is used from ACE, iptables filtering allows only some interfaces to connect to ACE, only one entry point for all our development and admin tools)

      Attachments

        Activity

          People

            marrs Marcel Offermans
            dmg David Goddard
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: