平台是windows,使用iis做前端反向代理,SERVICE_URL和FILE_SERVER_ROOT已经正确设置,web页面能够正常上传和下载中文文件名的文件,seadrive也能够正常访问,但是ios客户端访问带中文文件名的文件的时候就会出现“下载失败”,iis的日志里面记录到404的错误,但同一个url能够在普通的浏览器上访问(转换成%%%%的那个),与此同时上传带有中文文件名的文件则不受影响,能够正常上传。
检查django_request的log,发现报一个js的错,不知道是不是这个原因
2017-05-03 23:42:58,460 [ERROR] django.request:256 handle_uncaught_exception Internal Server Error: /media/assets/scripts/i18n/zh-cn/djangojs.js
Traceback (most recent call last):
File "D:\seafile\seahub\thirdpart\django-1.8.10-py2.7.egg\django\core\handlers\base.py", line 108, in get_response
response = middleware_method(request)
File "D:\seafile\seahub\seahub\base\middleware.py", line 67, in process_request
self.get_from_db()
File "D:\seafile\seahub\seahub\base\middleware.py", line 51, in get_from_db
refresh_cache()
File "D:\seafile\seahub\seahub\notifications\utils.py", line 11, in refresh_cache
NOTIFICATION_CACHE_TIMEOUT)
File "D:\seafile\seahub\thirdpart\django-1.8.10-py2.7.egg\django\core\cache\backends\filebased.py", line 59, in set
file_move_safe(tmp_path, fname, allow_overwrite=True)
File "D:\seafile\seahub\thirdpart\django-1.8.10-py2.7.egg\django\core\files\move.py", line 70, in file_move_safe
copystat(old_file_name, new_file_name)
File "C:\Python27\lib\shutil.py", line 100, in copystat
os.chmod(dst, mode)
WindowsError: [Error 2] : 'D:\\seafile-server\\seahub_cache\\ceec40422771f78d283f254429d1d993.djcache'