Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api2/search-user broken in recent releases #3001

Open
Nimloth opened this issue Feb 26, 2019 · 1 comment
Open

api2/search-user broken in recent releases #3001

Nimloth opened this issue Feb 26, 2019 · 1 comment

Comments

@Nimloth
Copy link

Nimloth commented Feb 26, 2019

On a newer seafile install, I go to

System Admin => Libraries

and then for any library open the Share dialog.

In the search field, I can enter a username or email to search for a user to share the library with, but I always get a 'Loading failed' error.
The corresponding error in seahub.log is:

2019-02-25 17:35:06,946 [ERROR] django.request:135 handle_uncaught_exception Internal Server Error: /api2/search-user/
Traceback (most recent call last):
 File "/usr/local/lib/python2.7/site-packages/django/core/handlers/exception.py", line 41, in inner
   response = get_response(request)
 File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 249, in _legacy_get_response
   response = self._get_response(request)
 File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 187, in _get_response
   response = self.process_exception_by_middleware(e, request)
 File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 185, in _get_response
   response = wrapped_callback(request, *callback_args, **callback_kwargs)
 File "/usr/local/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
   return view_func(*args, **kwargs)
 File "/usr/local/lib/python2.7/site-packages/django/views/generic/base.py", line 68, in view
   return self.dispatch(request, *args, **kwargs)
 File "/usr/local/lib/python2.7/site-packages/rest_framework/views.py", line 495, in dispatch
   response = self.handle_exception(exc)
 File "/usr/local/lib/python2.7/site-packages/rest_framework/views.py", line 455, in handle_exception
   self.raise_uncaught_exception(exc)
 File "/usr/local/lib/python2.7/site-packages/rest_framework/views.py", line 492, in dispatch
   response = handler(request, *args, **kwargs)
 File "/usr/local/www/haiwen/seafile-server/seahub/seahub/api2/endpoints/search_user.py", line 129, in get
   user_obj_list = ccnet_api.get_emailusers_in_list('DB', email_list_json) + \
AttributeError: 'CcnetAPI' object has no attribute 'get_emailusers_in_list'

Versions:

ccnet 6.3.4
libsearpc 3.1.0
seafile-server 6.3.4
seahub 6.3.11
seafobj 6.3.11
seafdav 6.3.11

On an older install, this does not happen:

ccnet 6.3.4
libsearpc 3.0.8
seafile-server 6.3.4
seahub 6.3.7
seafobj 6.3.7
seafdav 6.3.7

Could this be related to commit 4bd9c13927151b7c7688153d24552bf6d97c0a04?

@Ultima1252
Copy link

My inital scan was incorrect. The commit that introduced this regression is 496b1c9 which was introduced in 6.3.8. Reverting the commit will restore fuctionality of this feature.

uqs pushed a commit to freebsd/freebsd-ports that referenced this issue Mar 16, 2019
* Added patch to SeaHub to revert regression

The regression breaks the search_user function.
More details about regression can be found at:
haiwen/seahub#3001

PR:		236047
Reported by:	Martin Waschbüsch <martin@wasch^>


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@495933 35697150-7ecd-e111-bb59-0022644237b5
uqs pushed a commit to freebsd/freebsd-ports that referenced this issue Mar 16, 2019
* Added patch to SeaHub to revert regression

The regression breaks the search_user function.
More details about regression can be found at:
haiwen/seahub#3001

PR:		236047
Reported by:	Martin Waschbüsch <martin@wasch^>
Jehops pushed a commit to Jehops/freebsd-ports-legacy that referenced this issue Mar 16, 2019
* Added patch to SeaHub to revert regression

The regression breaks the search_user function.
More details about regression can be found at:
haiwen/seahub#3001

PR:		236047
Reported by:	Martin Waschbüsch <martin@wasch^>


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@495933 35697150-7ecd-e111-bb59-0022644237b5
svmhdvn pushed a commit to svmhdvn/freebsd-ports that referenced this issue Jan 10, 2024
* Added patch to SeaHub to revert regression

The regression breaks the search_user function.
More details about regression can be found at:
haiwen/seahub#3001

PR:		236047
Reported by:	Martin Waschbüsch <martin@wasch^>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants