PatrickRoumanoff / nexus-crowd-plugin

Sonatype Nexus plugin for Atlassian Crowd integration
http://patrickroumanoff.github.io/nexus-crowd-plugin/
40 stars 20 forks source link

Use against embedded Crowd #8

Closed briantopping closed 10 years ago

briantopping commented 11 years ago

Great plugin, have been using it for a while against native Crowd, thanks. Switched over this week to using embedded Crowd in Jira 6.0.1 (using the "JIRA User Server"), but connecting nexus-crowd-plugin to it causes that version of Crowd to crash.

Stack trace from JIRA:

java.lang.NullPointerException at com.atlassian.crowd.plugin.rest.service.controller.TokenController.createSessionEntityWithMinimalUser(TokenController.java:221) at com.atlassian.crowd.plugin.rest.service.controller.TokenController.authenticateUser(TokenController.java:67) at com.atlassian.crowd.plugin.rest.service.resource.TokenResource.authenticateUser(TokenResource.java:101) at sun.reflect.GeneratedMethodAccessor1525.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker$1.invoke(DispatchProviderHelper.java:234) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$1.intercept(DispatchProviderHelper.java:100) at com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:61) at com.atlassian.plugins.rest.common.expand.interceptor.ExpandInterceptor.intercept(ExpandInterceptor.java:38) at com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:61)

flopma commented 11 years ago

Hi Brian,

I'm sorry but the initial code is not meant to be targeted at Jira. Feel free to change the code and share patches about this functionality.

Issa

briantopping commented 11 years ago

Thanks Issa. Are you at all familiar with why things aren't working so I know where to start?

flopma commented 11 years ago

No sorry, I've never worked with Jira as a authentication server.

briantopping commented 11 years ago

I've made some progress on refactoring this for JIRA user server, stay tuned.

briantopping commented 10 years ago

I did get this working, but completely forgot to push the changes back, sorry about that.

eirikb commented 6 years ago

@briantopping what changes did you have to make?

McFoggy commented 6 years ago

@briantopping can you please share your findings? querying the SSO endpoints on our embedded Crowd in JIRA ends in this NPE.