eagle-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ehsan RahimiNasab <rahiminas...@gmail.com>
Subject bug in eagle simple authenticate
Date Fri, 21 Apr 2017 16:33:53 GMT
Hi,

I cannot authenticate users when I use auth.mode=simple. It seems that the
Authenticator is not aware of the account that I have configured as follows
in server.yaml :


   - # for basic authentication, effective only when auth.mode=simple
   -
   -   simple:
   -     accounts:
   -       - name: admin
   -         password: rWV/cdTCr01wTLBQ/rUilkExd2TJKr
   ifXuCCTEwig1o08K8Mi0b1qQAgVXpPqflb
   -         roles: ADMINISTRATOR
   -         firstName: Admin
   -         lastName: Admin
   -         email: root@me.com

Here is the log that I have when I try to login:


   1. DEBUG [2017-04-21 13:34:46,299] org.eclipse.jetty.server.Server:
   REQUEST /rest/auth/principal on HttpChannelOverHttp@5c7fbddf{r=11
   ,a=DISPATCHED,uri=/rest/auth/principal}
   2. DEBUG [2017-04-21 13:34:46,299] org.eclipse.jetty.server.handler.
   ContextHandler: scope null||/rest/auth/principal @ i.d.j.
   MutableServletContextHandler@2c991465{/,null,AVAILABLE}
   3. DEBUG [2017-04-21 13:34:46,299] org.eclipse.jetty.server.handler.
   ContextHandler: context=||/rest/auth/principal @ i.d.j.
   MutableServletContextHandler@2c991465{/,null,AVAILABLE}
   4. DEBUG [2017-04-21 13:34:46,299] org.eclipse.jetty.servlet.Serv
   letHandler: servlet |/rest|/auth/principal ->
   com.hubspot.dropwizard.guice.GuiceContainer-7dc40b45@5e86da19
   ==com.hubspot.dropwizard.guice.GuiceContainer,1,true
   5. DEBUG [2017-04-21 13:34:46,299] org.eclipse.jetty.servlet.Serv
   letHandler: chain=Guice Filter->org.apache.eagle.alert.resource.Si
   mpleCORSFiler->io.dropwizard.jersey.filter.AllowedMethodsFilter-57f482cc
   ->io.dropwizard.servlets.ThreadNameFilter-7f5bb222->io.dropwizard.jetty.
   BiDiGzipFilter-e6ba417->com.hubspot.dropwizard.guice.GuiceContainer-
   7dc40b45@5e86da19==com.hubspot.dropwizard.guice.GuiceContainer,1,true
   6. DEBUG [2017-04-21 13:34:46,299] org.eclipse.jetty.servlet.Serv
   letHandler: call filter Guice Filter
   7. DEBUG [2017-04-21 13:34:46,299] org.eclipse.jetty.servlet.Serv
   letHandler: call filter org.apache.eagle.alert.resource.SimpleCORSFiler
   8. DEBUG [2017-04-21 13:34:46,299] org.eclipse.jetty.servlet.Serv
   letHandler: call filter io.dropwizard.jersey.filter.AllowedMethodsFilter-
   57f482cc
   9. DEBUG [2017-04-21 13:34:46,299] org.eclipse.jetty.servlet.Serv
   letHandler: call filter io.dropwizard.servlets.ThreadNameFilter-7f5bb222
   10. DEBUG [2017-04-21 13:34:46,299] org.eclipse.jetty.servlet.Serv
   letHandler: call filter io.dropwizard.jetty.BiDiGzipFilter-e6ba417
   11. DEBUG [2017-04-21 13:34:46,299] org.eclipse.jetty.servlet.Serv
   letHandler: call servlet com.hubspot.dropwizard.guice.GuiceContainer-
   7dc40b45@5e86da19==com.hubspot.dropwizard.guice.GuiceContainer,1,true
   12. DEBUG [2017-04-21 13:34:46,356] com.sun.jersey.spi.container.C
   ontainerResponse: Mapped exception to response: 403 (Forbidden)
   13. ! javax.ws.rs.WebApplicationException: null
   14. ! at org.apache.eagle.server.security.BasicAuthRequestFilter.filter(
   BasicAuthRequestFilter.java:184) ~[eagle-topology-0.5.0-SNAPSHO
   T-assembly.jar:na]
   15. ! at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(H
   ttpMethodRule.java:281) ~[eagle-topology-0.5.0-SNAPSHOT-assembly.jar:na]
   16. ! at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(
   RightHandPathRule.java:147) ~[eagle-topology-0.5.0-SNAPSHO
   T-assembly.jar:na]
   17. ! at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(
   ResourceClassRule.java:108) ~[eagle-topology-0.5.0-SNAPSHO
   T-assembly.jar:na]
   18. ! at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(
   RightHandPathRule.java:147) ~[eagle-topology-0.5.0-SNAPSHO
   T-assembly.jar:na]
   19. ! at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule
   .accept(RootResourceClassesRule.java:84) ~[eagle-topology-0.5.0-SNAPSHO
   T-assembly.jar:na]
   20. ! at com.sun.jersey.server.impl.application.WebApplicationImpl._
   handleRequest(WebApplicationImpl.java:1542) [eagle-topology-0.5.0
   -SNAPSHOT-assembly.jar:na]
   21. ! at com.sun.jersey.server.impl.application.WebApplicationImpl._
   handleRequest(WebApplicationImpl.java:1473) [eagle-topology-0.5.0
   -SNAPSHOT-assembly.jar:na]
   22. ! at com.sun.jersey.server.impl.application.WebApplicationImpl.
   handleRequest(WebApplicationImpl.java:1419) [eagle-topology-0.5.0
   -SNAPSHOT-assembly.jar:na]
   23. ! at com.sun.jersey.server.impl.application.WebApplicationImpl.
   handleRequest(WebApplicationImpl.java:1409) [eagle-topology-0.5.0
   -SNAPSHOT-assembly.jar:na]
   24. ! at com.sun.jersey.spi.container.servlet.WebComponent.service(We
   bComponent.java:409) [eagle-topology-0.5.0-SNAPSHOT-assembly.jar:na]
   25. ! at com.sun.jersey.spi.container.servlet.ServletContainer.service(
   ServletContainer.java:558) [eagle-topology-0.5.0-SNAPSHOT
   -assembly.jar:na]
   26. ! at com.sun.jersey.spi.container.servlet.ServletContainer.service(
   ServletContainer.java:733) [eagle-topology-0.5.0-SNAPSHOT
   -assembly.jar:na]
   27. ! at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
   [eagle-topology-0.5.0-SNAPSHOT-assembly.jar:na]
   28. ! at io.dropwizard.jetty.NonblockingServletHolder.handle(Nonblock
   ingServletHolder.java:49) [dropwizard-jetty-0.7.1.jar:0.7.1]
   29. ! at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(
   ServletHandler.java:1515) [eagle-topology-0.5.0-SNAPSHOT-assembly.jar:na]
   30. ! at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgen
   tFilter.java:83) [eagle-topology-0.5.0-SNAPSHOT-assembly.jar:na]
   31. ! at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:
   348) [eagle-topology-0.5.0-SNAPSHOT-assembly.jar:na]
   32. ! at io.dropwizard.jetty.BiDiGzipFilter.doFilter(BiDiGzipFilter.java:
   127) [dropwizard-jetty-0.7.1.jar:0.7.1]
   33. ! at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(
   ServletHandler.java:1486) [eagle-topology-0.5.0-SNAPSHOT-assembly.jar:na]
   34. ! at io.dropwizard.servlets.ThreadNameFilter.doFilter(ThreadNameF
   ilter.java:29) [dropwizard-servlets-0.7.1.jar:0.7.1]
   35. ! at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(
   ServletHandler.java:1486) [eagle-topology-0.5.0-SNAPSHOT-assembly.jar:na]
   36. ! at io.dropwizard.jersey.filter.AllowedMethodsFilter.handle(Allo
   wedMethodsFilter.java:44) [dropwizard-jersey-0.7.1.jar:0.7.1]
   37. ! at io.dropwizard.jersey.filter.AllowedMethodsFilter.doFilter(Al
   lowedMethodsFilter.java:39) [dropwizard-jersey-0.7.1.jar:0.7.1]
   38. ! at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(
   ServletHandler.java:1486) [eagle-topology-0.5.0-SNAPSHOT-assembly.jar:na]
   39. ! at org.apache.eagle.alert.resource.SimpleCORSFiler.doFilter(Sim
   pleCORSFiler.java:51) [eagle-topology-0.5.0-SNAPSHOT-assembly.jar:na]
   40. ! at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(
   ServletHandler.java:1486) [eagle-topology-0.5.0-SNAPSHOT-assembly.jar:na]
   41. ! at com.google.inject.servlet.FilterChainInvocation.doFilter(Fil
   terChainInvocation.java:66) [eagle-topology-0.5.0-SNAPSHOT
   -assembly.jar:na]
   42. ! at com.google.inject.servlet.ManagedFilterPipeline.dispatch(Man
   agedFilterPipeline.java:118) [eagle-topology-0.5.0-SNAPSHOT
   -assembly.jar:na]
   43. ! at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:
   113) [eagle-topology-0.5.0-SNAPSHOT-assembly.jar:na]
   44. ! at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(
   ServletHandler.java:1486) [eagle-topology-0.5.0-SNAPSHOT-assembly.jar:na]
   45. ! at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler
   .java:519) [eagle-topology-0.5.0-SNAPSHOT-assembly.jar:na]
   46. ! at org.eclipse.jetty.server.handler.ContextHandler.doHandle(Con
   textHandler.java:1097) [eagle-topology-0.5.0-SNAPSHOT-assembly.jar:na]
   47. ! at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler
   .java:448) [eagle-topology-0.5.0-SNAPSHOT-assembly.jar:na]
   48. ! at org.eclipse.jetty.server.handler.ContextHandler.doScope(Cont
   extHandler.java:1031) [eagle-topology-0.5.0-SNAPSHOT-assembly.jar:na]
   49. ! at org.eclipse.jetty.server.handler.ScopedHandler.handle(Scoped
   Handler.java:136) [eagle-topology-0.5.0-SNAPSHOT-assembly.jar:na]
   50. ! at org.eclipse.jetty.server.handler.HandlerWrapper.handle(Handl
   erWrapper.java:97) [eagle-topology-0.5.0-SNAPSHOT-assembly.jar:na]
   51. ! at com.codahale.metrics.jetty9.InstrumentedHandler.handle(Instr
   umentedHandler.java:175) [eagle-topology-0.5.0-SNAPSHOT-assembly.jar:na]
   52. ! at io.dropwizard.jetty.RoutingHandler.handle(RoutingHandler.java:51)
   [dropwizard-jetty-0.7.1.jar:0.7.1]
   53. ! at org.eclipse.jetty.server.handler.HandlerWrapper.handle(Handl
   erWrapper.java:97) [eagle-topology-0.5.0-SNAPSHOT-assembly.jar:na]
   54. ! at org.eclipse.jetty.server.handler.RequestLogHandler.handle(Re
   questLogHandler.java:92) [eagle-topology-0.5.0-SNAPSHOT-assembly.jar:na]
   55. ! at org.eclipse.jetty.server.handler.HandlerWrapper.handle(Handl
   erWrapper.java:97) [eagle-topology-0.5.0-SNAPSHOT-assembly.jar:na]
   56. ! at org.eclipse.jetty.server.handler.StatisticsHandler.handle(St
   atisticsHandler.java:162) [eagle-topology-0.5.0-SNAPSHOT-assembly.jar:na]
   57. ! at org.eclipse.jetty.server.handler.HandlerWrapper.handle(Handl
   erWrapper.java:97) [eagle-topology-0.5.0-SNAPSHOT-assembly.jar:na]
   58. ! at org.eclipse.jetty.server.Server.handle(Server.java:446)
   [eagle-topology-0.5.0-SNAPSHOT-assembly.jar:na]
   59. ! at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:271)
   [eagle-topology-0.5.0-SNAPSHOT-assembly.jar:na]
   60. ! at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConne
   ction.java:246) [eagle-topology-0.5.0-SNAPSHOT-assembly.jar:na]
   61. ! at org.eclipse.jetty.io.AbstractConnection$ReadCallback.run(
   AbstractConnection.java:358) [eagle-topology-0.5.0-SNAPSHOT
   -assembly.jar:na]
   62. ! at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(Queued
   ThreadPool.java:601) [eagle-topology-0.5.0-SNAPSHOT-assembly.jar:na]
   63. ! at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedT
   hreadPool.java:532) [eagle-topology-0.5.0-SNAPSHOT-assembly.jar:na]
   64. ! at java.lang.Thread.run(Thread.java:745) [na:1.8.0_121]


What is wrong here?

Mime
View raw message