Hi all,
i’ve searched the topics but could not find anything with the problem in question in the subject of this topic.
- When i try to create a share link with a password all i get is a small message on top “Error” (screenshot bellow).
- In the seahub.log i see this after each try:
[ERROR] django.request:224 log_response Internal Server Error: /api/v2.1/share-links/
Traceback (most recent call last):
File “/srv/seafile/seahub/thirdpart/django/core/handlers/exception.py”, line 47, in inner
response = get_response(request)
File “/srv/seafile/seahub/thirdpart/django/core/handlers/base.py”, line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/srv/seafile/seahub/thirdpart/django/views/decorators/csrf.py”, line 54, in wrapped_view
return view_func(*args, **kwargs)
File “/srv/seafile/seahub/thirdpart/django/views/generic/base.py”, line 70, in view
return self.dispatch(request, *args, **kwargs)
File “/srv/seafile/seahub/thirdpart/rest_framework/views.py”, line 505, in dispatch
response = self.handle_exception(exc)
File “/srv/seafile/seahub/thirdpart/rest_framework/views.py”, line 465, in handle_exception
self.raise_uncaught_exception(exc)
File “/srv/seafile/seahub/thirdpart/rest_framework/views.py”, line 476, in raise_uncaught_exception
raise exc
File “/srv/seafile/seahub/thirdpart/rest_framework/views.py”, line 502, in dispatch
response = handler(request, *args, **kwargs)
File “/srv/seafile/seahub/seahub/api2/endpoints/share_links.py”, line 410, in post
fs = FileShare.objects.create_file_link(username, repo_id, path,
File “/srv/seafile/seahub/seahub/share/models.py”, line 157, in create_file_link
return self._add_file_share(username, repo_id, path, ‘f’, password,
File “/srv/seafile/seahub/seahub/share/models.py”, line 110, in _add_file_share
password_enc = make_password(password)
File “/srv/seafile/seahub/seahub/share/models.py”, line 31, in make_password
aes = AESPasswordHasher()
File “/srv/seafile/seahub/seahub/utils/hasher.py”, line 39, in init
self.cipher = AES.new(secret.encode(‘utf-8’), AES.MODE_ECB)
AttributeError: ‘NoneType’ object has no attribute ‘new’
Everything else on the seafile installation works as designed.
Seafile “version”: “9.0.2” is running on Ubuntu 20.04.3 LTS
I could use some help