Seafile pro 8.0.2 broke OnlyOffice edition (with token)

Just upgraded a fully working 8.0.1 pro install to 8.0.2. Now I can’t edit any office files (with OnlyOffice). Web page fails with

Sorry, but the requested page is unavailable due to a server hiccup.

Our engineers have been notified, so check back later.

Log files show

avril 22 18:36:20 seafile python[1270]: 2021-04-22 16:36:20,293 [ERROR] django.request:228 log_response Internal Server Error: /lib/c5cb13c5-4e5c-442d-8296-d76401ad417a/file/mornier.xlsx
                                        Traceback (most recent call last):
                                          File "/opt/seafile/seafile-server/seahub/thirdpart/django/core/handlers/exception.py", line 34, in inner
                                            response = get_response(request)
                                          File "/opt/seafile/seafile-server/seahub/thirdpart/django/core/handlers/base.py", line 115, in _get_response
                                            response = self.process_exception_by_middleware(e, request)
                                          File "/opt/seafile/seafile-server/seahub/thirdpart/django/core/handlers/base.py", line 113, in _get_response
                                            response = wrapped_callback(request, *callback_args, **callback_kwargs)
                                          File "/opt/seafile/seafile-server/seahub/seahub/auth/decorators.py", line 27, in _wrapped_view
                                            return view_func(request, *args, **kwargs)
                                          File "/opt/seafile/seafile-server/seahub/seahub/base/decorators.py", line 59, in _decorated
                                            return func(request, *args, **kwargs)
                                          File "/opt/seafile/seafile-server/seahub/seahub/views/file.py", line 816, in view_lib_file
                                            can_edit=can_edit, can_download=parse_repo_perm(permission).can_download)
                                          File "/opt/seafile/seafile-server/seahub/seahub/onlyoffice/utils.py", line 142, in get_onlyoffice_dict
                                            return_dict['onlyoffice_jwt_token'] = jwt.encode(config, ONLYOFFICE_JWT_SECRET).decode('utf-8')
                                        AttributeError: 'str' object has no attribute 'decode'

I had to disable the OnlyOffice token to get it working (once again)

Just tried 8.0.3, and the issue is still present

We will fix the problem in the next release.

1 Like

Is there a release schedule yet? When will Pro 8.0.4 be released?

and will the 8.0.4 be pushed for docker as well Daniel?

A new CE and PRO version will be released in the next week.

1 Like

Did I miss a new pro docker version @daniel.pan or has there been a delay?
thank you

8.0.4 is out but there is no entry in the changelog related to the OnlyOffice JWT token issue.

@daniel.pan did you forget to include the promised fix in this release?

It should have been fixed.