You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@aurora.apache.org by "Kevin Sweeney (JIRA)" <ji...@apache.org> on 2015/03/16 23:14:38 UTC
[jira] [Reopened] (AURORA-1201) auth_module is not installed in
child injector
[ https://issues.apache.org/jira/browse/AURORA-1201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kevin Sweeney reopened AURORA-1201:
-----------------------------------
> auth_module is not installed in child injector
> ----------------------------------------------
>
> Key: AURORA-1201
> URL: https://issues.apache.org/jira/browse/AURORA-1201
> Project: Aurora
> Issue Type: Bug
> Components: Scheduler, Security
> Reporter: Kevin Sweeney
> Assignee: Kevin Sweeney
> Priority: Blocker
>
> The recent patch to enable HTTP Basic Authentication moved construction of ThriftAuthModule to the Jetty child injector, but the user-supplied module was still installed in the parent injector. This leads to a stack trace for anyone using their own {{auth_module}}:
> {noformat}
> INFO: Connecting to master using authentication (principal: TwitterScheduler).
> Exception in thread "main" com.google.inject.CreationException: Guice creation errors:
> 1) No implementation for java.util.Map<org.apache.aurora.auth.CapabilityValidator$Capability, java.lang.String> was bound.
> while locating java.util.Map<org.apache.aurora.auth.CapabilityValidator$Capability, java.lang.String>
> for parameter 1 at com.twitter.aurora.internal.auth.TwitterCapabilityValidator.<init>(TwitterCapabilityValidator.java:28)
> at com.twitter.aurora.internal.auth.TwitterAuthModule.configure(TwitterAuthModule.java:97)
> 2) No implementation for java.util.Map<org.apache.aurora.auth.CapabilityValidator$Capability, java.lang.String> was bound.
> at com.twitter.aurora.internal.auth.TwitterAuthModule.configure(TwitterAuthModule.java:94)
> 2 errors
> at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:435)
> at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:154)
> at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106)
> at com.google.inject.Guice.createInjector(Guice.java:95)
> at com.google.inject.Guice.createInjector(Guice.java:83)
> at com.twitter.common.application.AppLauncher.configureInjection(AppLauncher.java:120)
> at com.twitter.common.application.AppLauncher.run(AppLauncher.java:87)
> at com.twitter.common.application.AppLauncher.launch(AppLauncher.java:181)
> at com.twitter.common.application.AppLauncher.launch(AppLauncher.java:142)
> at org.apache.aurora.scheduler.app.SchedulerMain.main(SchedulerMain.java:279)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)