Task #13198 (new)
Opened 3 years ago
Last modified 3 years ago
ApiUsageException: Cannot find unique user DistinguishedName
| Reported by: | atarkowska | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | FacilityManagers |
| Component: | Services | Version: | OMERO-5.2.0 |
| Keywords: | n.a. | Cc: | anne.danckaert@… |
| Resources: | n.a. | Referenced By: | n.a. |
| References: | n.a. | Remaining Time: | n.a. |
| Sprint: | n.a. |
Description
https://www.openmicroscopy.org/qa2/qa2/qa/feedback/17131/
Comment: no idea!
Traceback (most recent call last):
File "/opt/omero/OMERO.server/lib/python/django/core/handlers/base.py", line 114, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/omero/OMERO.server/lib/python/omeroweb/decorators.py", line 478, in wrapped
retval = f(request, *args, **kwargs)
File "/opt/omero/OMERO.server/lib/python/omeroweb/decorators.py", line 528, in wrapper
context = f(request, *args, **kwargs)
File "/opt/omero/OMERO.server/lib/python/omeroweb/webadmin/views.py", line 465, in manage_experimenter
prepare_experimenter(conn, eid)
File "/opt/omero/OMERO.server/lib/python/omeroweb/webadmin/views.py", line 106, in prepare_experimenter
isLdapUser = experimenter.isLdapUser()
File "/opt/omero/OMERO.server/lib/python/omeroweb/webclient/webclient_gateway.py", line 2286, in isLdapUser
self.ldapUser = admin_serv.lookupLdapAuthExperimenter(self.id)
File "/opt/omero/OMERO.server/lib/python/omero/gateway/__init__.py", line 4163, in __call__
return self.handle_exception(e, *args, **kwargs)
File "/opt/omero/OMERO.server/lib/python/omeroweb/webclient/webclient_gateway.py", line 2106, in handle_exception
e, *args, **kwargs)
File "/opt/omero/OMERO.server/lib/python/omero/gateway/__init__.py", line 4160, in __call__
return self.f(*args, **kwargs)
File "/opt/omero/OMERO.server/lib/python/omero_api_IAdmin_ice.py", line 346, in lookupLdapAuthExperimenter
return _M_omero.api.IAdmin._op_lookupLdapAuthExperimenter.invoke(self, ((id, ), _ctx))
ApiUsageException: exception ::omero::ApiUsageException
{
serverStackTrace = ome.conditions.ApiUsageException: Cannot find unique user DistinguishedName: found=0
at ome.logic.LdapImpl.mapUserName(LdapImpl.java:212)
at ome.logic.LdapImpl.findExperimenter(LdapImpl.java:174)
at ome.logic.LdapImpl.findDN(LdapImpl.java:162)
at ome.logic.LdapImpl.lookupLdapAuthExperimenter(LdapImpl.java:688)
at ome.logic.AdminImpl.lookupLdapAuthExperimenter(AdminImpl.java:337)
at sun.reflect.GeneratedMethodAccessor2066.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at ome.security.basic.EventHandler.invoke(EventHandler.java:154)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:111)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:108)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at ome.tools.hibernate.ProxyCleanupFilter$Interceptor.invoke(ProxyCleanupFilter.java:249)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at ome.services.util.ServiceHandler.invoke(ServiceHandler.java:121)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy79.lookupLdapAuthExperimenter(Unknown Source)
at sun.reflect.GeneratedMethodAccessor2066.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at ome.security.basic.BasicSecurityWiring.invoke(BasicSecurityWiring.java:98)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at ome.services.blitz.fire.AopContextInitializer.invoke(AopContextInitializer.java:43)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy79.lookupLdapAuthExperimenter(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at ome.services.blitz.util.IceMethodInvoker.invoke(IceMethodInvoker.java:179)
at ome.services.throttling.Callback.run(Callback.java:56)
at ome.services.throttling.InThreadThrottlingStrategy.callInvokerOnRawArgs(InThreadThrottlingStrategy.java:56)
at ome.services.blitz.impl.AbstractAmdServant.callInvokerOnRawArgs(AbstractAmdServant.java:149)
at ome.services.blitz.impl.AdminI.lookupLdapAuthExperimenter_async(AdminI.java:258)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at omero.cmd.CallContext.invoke(CallContext.java:78)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy80.lookupLdapAuthExperimenter_async(Unknown Source)
at omero.api._IAdminTie.lookupLdapAuthExperimenter_async(_IAdminTie.java:296)
at omero.api._IAdminDisp.___lookupLdapAuthExperimenter(_IAdminDisp.java:651)
at omero.api._IAdminDisp.__dispatch(_IAdminDisp.java:1662)
at IceInternal.Incoming.invoke(Incoming.java:159)
at Ice.ConnectionI.invokeAll(ConnectionI.java:2357)
at Ice.ConnectionI.dispatch(ConnectionI.java:1208)
at Ice.ConnectionI.message(ConnectionI.java:1163)
at IceInternal.ThreadPool.run(ThreadPool.java:302)
at IceInternal.ThreadPool.access$300(ThreadPool.java:12)
at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:643)
at java.lang.Thread.run(Thread.java:745)
serverExceptionClass = ome.conditions.ApiUsageException
message = Cannot find unique user DistinguishedName: found=0
}
<WSGIRequest
path:/webadmin/experimenter/edit/252/,
GET:<QueryDict: {}>,
POST:<QueryDict: {}>,
COOKIES:{'csrftoken': 'MU56v5XUsLDK5z8DApy8K2SqsAuZmypc',
'sessionid': 'voxpsaaofmtpuiqeno4li8coo7eghj3a'},
META:{'CONTENT_LENGTH': '',
'CONTENT_TYPE': '',
u'CSRF_COOKIE': u'MU56v5XUsLDK5z8DApy8K2SqsAuZmypc',
'HTTPS': 'on',
'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
'HTTP_ACCEPT_LANGUAGE': 'fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3',
'HTTP_CONNECTION': 'keep-alive',
'HTTP_COOKIE': 'csrftoken=MU56v5XUsLDK5z8DApy8K2SqsAuZmypc; sessionid=voxpsaaofmtpuiqeno4li8coo7eghj3a',
'HTTP_DNT': '1',
'HTTP_HOST': 'omero.pasteur.fr',
'HTTP_REFERER': 'https://omero.pasteur.fr/webadmin/experimenters/',
'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0',
'PATH_INFO': u'/webadmin/experimenter/edit/252/',
'QUERY_STRING': '',
'REQUEST_METHOD': 'GET',
'SCRIPT_NAME': u'',
'SERVER_NAME': 'omero.pasteur.fr',
'SERVER_PORT': '443',
'SERVER_PROTOCOL': 'HTTP/1.1',
'wsgi.errors': <flup.server.fcgi_base.TeeOutputStream object at 0x5545f10>,
'wsgi.input': <flup.server.fcgi_base.InputStream object at 0x5545990>,
'wsgi.multiprocess': True,
'wsgi.multithread': False,
'wsgi.run_once': False,
'wsgi.url_scheme': 'https',
'wsgi.version': (1, 0)}>
Change History (2)
comment:1 Changed 3 years ago by dlindner
comment:2 Changed 3 years ago by jburel
- Milestone changed from Unscheduled to FacilityManagers
Similar issue reported from insight see https://www.openmicroscopy.org/qa2/qa/feedback/17299/
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
Looks like the same bug as this https://trac.openmicroscopy.org/ome/ticket/12956