catmaid / CATMAID

Collaborative Annotation Toolkit for Massive Amounts of Image Data
https://catmaid.org
GNU General Public License v3.0
182 stars 56 forks source link

[BUG] URL to this view fails when preserving widgets layout and content #2220

Closed acardona closed 2 years ago

acardona commented 2 years ago

Click on "Create URL to view with layout" and get:

Unsuccessful request: DeepLinkStackGroup() got an unexpected keyword argument 'deeplink'

Click to show/hide detail (please include in bug reports)

Version: 2021.12.21-117-g7510a2cb8
URL: /catmaid/fibsem/10/links/
Method: POST
Details: Traceback (most recent call last):
  File "/opt/catmaid/fibsem/django/env/lib/python3.8/site-packages/django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3.8/contextlib.py", line 75, in inner
    return func(*args, **kwds)
  File "/opt/catmaid/fibsem/django/env/lib/python3.8/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
    return view_func(*args, **kwargs)
  File "/opt/catmaid/fibsem/django/env/lib/python3.8/site-packages/django/views/generic/base.py", line 70, in view
    return self.dispatch(request, *args, **kwargs)
  File "/opt/catmaid/fibsem/django/env/lib/python3.8/site-packages/rest_framework/views.py", line 509, in dispatch
    response = self.handle_exception(exc)
  File "/opt/catmaid/fibsem/django/env/lib/python3.8/site-packages/rest_framework/views.py", line 469, in handle_exception
    self.raise_uncaught_exception(exc)
  File "/opt/catmaid/fibsem/django/env/lib/python3.8/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
    raise exc
  File "/opt/catmaid/fibsem/django/env/lib/python3.8/site-packages/rest_framework/views.py", line 506, in dispatch
    response = handler(request, *args, **kwargs)
  File "/opt/catmaid/fibsem/django/env/lib/python3.8/site-packages/django/utils/decorators.py", line 43, in _wrapper
    return bound_method(*args, **kwargs)
  File "/opt/catmaid/fibsem/django/applications/catmaid/control/authentication.py", line 274, in inner_decorator
    return f(request, *args, **kwargs)
  File "/opt/catmaid/fibsem/django/applications/catmaid/control/deeplink.py", line 215, in post
    sg_link = DeepLinkStackGroup(**{
  File "/opt/catmaid/fibsem/django/env/lib/python3.8/site-packages/django/db/models/base.py", line 503, in __init__
    raise TypeError("%s() got an unexpected keyword argument '%s'" % (cls.__name__, kwarg))
TypeError: DeepLinkStackGroup() got an unexpected keyword argument 'deeplink'
tomka commented 2 years ago

Hi @acardona, thanks for the bug report! It looks like this is already fixed in dev since April (718a0201dc). I'll close this issue for now, but please reopen if you still have trouble after updating your setup.

We should probably create a new release version soon, to make more bug fixes available in the master branch as well.