BambooAuthenticationContext #getUser() returns null even if logged in

public class MyServlet extends HttpServlet {
  protected final BambooAuthenticationContext authenticationContext;

  protected MyServlet(@ComponentImport @Qualifier("bambooAuthenticationContext") BambooAuthenticationContext authenticationContext) {
      this.authenticationContext = authenticationContext;
  }

  @Override
  protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {
    User user = authenticationContext.getUser();
    ...
  }
}

Why user is null even if logged in?

We need to qualify authenticationContext param due to duplicated bean definitions.

Thanks in advance.
Cheers.

Hi,
the first question that comes to mind is why is there the conflict between the bean definitions?
Bamboo provides only one implementation of the BambooAuthenticationContext.
Are you able to find what other bean has the same bean id or name value?
Regards

the first question that comes to mind is why is there the conflict between the bean definitions?
Bamboo provides only one implementation of the BambooAuthenticationContext.

During atlas-package, without @Qualifier annotation, we got:

org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'com.atlassian.bamboo.user.BambooAuthenticationContext' available: expected single matching bean but found 2: authenticationContext,bambooAuthenticationContext
	at org.springframework.beans.factory.config.DependencyDescriptor.resolveNotUnique(DependencyDescriptor.java:221)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1233)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1175)
	at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:857)
	at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:760)
	... 19 more

Are you able to find what other bean has the same bean id or name value?

Not really. Any advice?
Thanks in advance.

Cheers.