Task #3149 (closed)

Opened 3 years ago

Last modified 3 years ago

BUG: Tag

Reported by: dzmacdonald Owned by: atarkowska
Priority: critical Milestone: OMERO-Beta4.2.1
Component: Web Keywords: n.a.
Cc: Remaining Time: 0.0d
Sprint: 2010-10-28 (18) Resources: n.a.
References: n.a. Referenced By: n.a.

Description

created a tag in data view, and then created a new tag with same name.

Traceback (most recent call last):

  File "/Users/donald/OMERO3/dist/lib/python/django/core/handlers/base.py", line 92, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/Users/donald/OMERO3/dist/lib/python/omeroweb/webclient/views.py", line 185, in wrapped
    return f(request, *args, **kwargs)

  File "/Users/donald/OMERO3/dist/lib/python/omeroweb/webclient/views.py", line 1403, in manage_action_containers
    manager.createTagAnnotation(o_type, tag, desc)

  File "/Users/donald/OMERO3/dist/lib/python/omeroweb/webclient/controller/container.py", line 534, in createTagAnnotation
    self.conn.saveObject(t_ann)

  File "/Users/donald/OMERO3/dist/lib/python/omeroweb/webclient/webclient_gateway.py", line 1234, in saveObject
    u.saveObject(obj)

  File "/Users/donald/OMERO3/dist/lib/python/omero/gateway/__init__.py", line 2283, in wrapped
    return inner(*args, **kwargs)

  File "/Users/donald/OMERO3/dist/lib/python/omero/gateway/__init__.py", line 2244, in inner
    return f(*args, **kwargs)

  File "/Users/donald/OMERO3/dist/lib/python/omero_api_IUpdate_ice.py", line 85, in saveObject
    return _M_omero.api.IUpdate._op_saveObject.invoke(self, ((obj, ), _ctx))

ValidationException: exception ::omero::ValidationException
{
    serverStackTrace = ome.conditions.ValidationException: could not insert: [ome.model.annotations.ImageAnnotationLink]; SQL [insert into imageannotationlink (child, creation_id, external_id, group_id, owner_id, permissions, update_id, parent, version, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]; constraint [imageannotationlink_parent_key]; nested exception is org.hibernate.exception.ConstraintViolationException: could not insert: [ome.model.annotations.ImageAnnotationLink]
	at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:637)
	at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
	at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:117)
	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:231)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at ome.services.util.ServiceHandler.invoke(ServiceHandler.java:111)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
	at $Proxy66.saveObject(Unknown Source)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	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:83)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at ome.services.blitz.fire.AopContextInitializer.invoke(AopContextInitializer.java:40)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
	at $Proxy66.saveObject(Unknown Source)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	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:136)
	at ome.services.blitz.impl.UpdateI.saveObject_async(UpdateI.java:85)
	at omero.api._IUpdateTie.saveObject_async(_IUpdateTie.java:113)
	at omero.api._IUpdateDisp.___saveObject(_IUpdateDisp.java:141)
	at omero.api._IUpdateDisp.__dispatch(_IUpdateDisp.java:377)
	at IceInternal.Incoming.invoke(Incoming.java:159)
	at Ice.ConnectionI.invokeAll(ConnectionI.java:2037)
	at Ice.ConnectionI.message(ConnectionI.java:972)
	at IceInternal.ThreadPool.run(ThreadPool.java:577)
	at IceInternal.ThreadPool.access$100(ThreadPool.java:12)
	at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:971)

    serverExceptionClass = ome.conditions.ValidationException
    message = could not insert: [ome.model.annotations.ImageAnnotationLink]; SQL [insert into imageannotationlink (child, creation_id, external_id, group_id, owner_id, permissions, update_id, parent, version, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]; constraint [imageannotationlink_parent_key]; nested exception is org.hibernate.exception.ConstraintViolationException: could not insert: [ome.model.annotations.ImageAnnotationLink]
}


<WSGIRequest
GET:<QueryDict: {u'url': [u'/webclient/metadata_details/image/14/']}>,
POST:<QueryDict: {u'tag': [u'123'], u'description': [u'']}>,
COOKIES:{'sessionid': 'c8919143722c5fe33639f925105697f4'},
META:{'Apple_PubSub_Socket_Render': '/tmp/launch-cge0cN/Render',
 'COMMAND_MODE': 'unix2003',
 'CONTENT_LENGTH': '20',
 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
 'DISPLAY': '/tmp/launch-oSx0KZ/:0',
 'DJANGO_SETTINGS_MODULE': 'omeroweb.settings',
 'DYLD_BIND_AT_LAUNCH': '1',
 'DYLD_LIBRARY_PATH': ':/opt/local/icelib',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HOME': '/Users/donald',
 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
 'HTTP_ACCEPT_ENCODING': 'gzip,deflate',
 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5',
 'HTTP_CONNECTION': 'keep-alive',
 'HTTP_COOKIE': 'sessionid=c8919143722c5fe33639f925105697f4',
 'HTTP_HOST': 'localhost:8000',
 'HTTP_KEEP_ALIVE': '300',
 'HTTP_REFERER': 'http://localhost:8000/webclient/action/newtag/image/14/?url=/webclient/metadata_details/image/14/',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.13) Gecko/20100914 Firefox/3.5.13',
 'ICE_HOME': '/opt/local',
 'LANG': 'en_US.UTF-8',
 'LOGNAME': 'donald',
 'MANPATH': '/opt/local/share/man:/usr/share/man:/usr/local/share/man:/usr/X11/man:/usr/local/git/man',
 'OLDPWD': '/Users/donald/OMERO3',
 'OMERO_HOME_DIR': '/Users/donald/OMERO3',
 'PATH': '/opt/local/bin:/opt/local/sbin/:/sbin:/usr/sbin:/bin:/usr/bin:/usr/sbin:/Library/PostgreSQL/8.3/bin::/opt/local/bin:/opt/local/include:/opt/local/lib:/Users/donald/OMERO3/dist/bin:/opt/local/bin:/opt/local/sbin',
 'PATH_INFO': u'/webclient/action/addtag/image/14/',
 'PWD': '/Users/donald/OMERO3/dist',
 'PYTHONPATH': '/opt/local/python:/Users/donald/OMERO3/dist/lib/python:/opt/local/lib/python2.5/site-packages/:.:/Users/donald/OMERO3/dist/lib/python:/Users/donald/OMERO3/dist/var/lib:/Users/donald/OMERO3/dist/lib/fallback',
 'QUERY_STRING': 'url=/webclient/metadata_details/image/14/',
 'REMOTE_ADDR': '127.0.0.1',
 'REMOTE_HOST': '',
 'REQUEST_METHOD': 'POST',
 'SCRIPT_NAME': u'',
 'SECURITYSESSIONID': 'a20510',
 'SERVER_NAME': 'Grumpy.dyn.lifesci.dundee.ac.uk',
 'SERVER_PORT': '8000',
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.5.5',
 'SHELL': '/bin/bash',
 'SHLVL': '1',
 'SSH_AUTH_SOCK': '/tmp/launch-uueVo5/Listeners',
 'TERM': 'xterm-color',
 'TERM_PROGRAM': 'Apple_Terminal',
 'TERM_PROGRAM_VERSION': '240',
 'TMPDIR': '/var/folders/7q/7qra67LHGgGIRrgENzrbIk+++TI/-Tmp-/',
 'TZ': 'Europe/London',
 'USER': 'donald',
 '_': 'bin/omero',
 '__CF_USER_TEXT_ENCODING': '0x1F5:0:0',
 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x170b0>,
 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>,
 'wsgi.input': <socket._fileobject object at 0x3afea30>,
 'wsgi.multiprocess': False,
 'wsgi.multithread': True,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'http',
 'wsgi.version': (1, 0)}>

References

Change History

comment:1 Changed 3 years ago by atarkowska

  • Status changed from new to assigned

comment:2 Changed 3 years ago by atarkowska

  • Status changed from assigned to closed
  • Resolution set to fixed
  • Remaining Time set to 0

(In [8378]) this fixes #3149, #3150

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.2-PRO © 2008-2010 agile42 all rights reserved (this page was served in: 2.212295 sec.)

We're Hiring!