Zip download link error

Hi,

Just to let you know.

On Seafile Pro 5.1.4, a download link from a 200Mb zip file will cause server error.

But the “direct” download link is functional.

The seahub_django_request.log shows :

2016-10-25 19:58:50,283 [ERROR] django.request:256 handle_uncaught_exception Internal Server Error: /f/451f0a63f3/

Traceback (most recent call last):

  File 
"/home/cc/seafile/seafile-pro-server-5.1.4/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/core/handlers/base.py",
 line 132, in get_response

    response = wrapped_callback(request, *callback_args, **callback_kwargs)

  File "/home/cc/seafile/seafile-pro-server-5.1.4/seahub/seahub/share/decorators.py", line 21, in _decorated

    return func(request, fileshare, *args, **kwargs)

  File "/home/cc/seafile/seafile-pro-server-5.1.4/seahub/seahub/views/file.py", line 820, in view_shared_file

    accessible_repos = get_unencry_rw_repos_by_user(request)

  File "/home/cc/seafile/seafile-pro-server-5.1.4/seahub/seahub/views/__init__.py", line 287, in get_unencry_rw_repos_by_user

    if check_folder_permission(request, r.id, '/') == 'rw':

  File "/home/cc/seafile/seafile-pro-server-5.1.4/seahub/seahub/views/__init__.py", line 116, in check_folder_permission

    return seafile_api.check_permission_by_path(repo_id, path, username)

  File 
"/home/cc/seafile/seafile-pro-server-5.1.4/seafile/lib64/python2.6/site-packages/seaserv/api.py",
 line 551, in check_permission_by_path

    return seafserv_threaded_rpc.check_permission_by_path(repo_id, path, user)

  File 
"/home/cc/seafile/seafile-pro-server-5.1.4/seafile/lib64/python2.6/site-packages/pysearpc/client.py",
 line 112, in newfunc

    return fret(ret_str)

  File 
"/home/cc/seafile/seafile-pro-server-5.1.4/seafile/lib64/python2.6/site-packages/pysearpc/client.py",
 line 25, in _fret_string

    raise SearpcError(dicts['err_msg'])

SearpcError: Invalid user

regards,
gautier

This bug should have been fixed in 5.1.11 or 6.0.2.