文件名称包含中文, 短链 302 跳转无法编码
zfile | 2025-06-16 01:08:00.129 WARN 1 --- [ ] [ ] [ ] [io-8080-exec-37] o.apache.coyote.http11.Http11Processor 175 : The HTTP response header [Location] with value [https://x.cn/插件应用.pdf] has been removed from the response because itlid
zfile |
zfile | java.lang.IllegalArgumentException: The Unicode character [插] at code point [25,554] cannot be encoded as it is outside the permitted range of 0 to 255
zfile | at org.apache.tomcat.util.buf.MessageBytes.toBytesSimple(MessageBytes.java:310)
zfile | at org.apache.tomcat.util.buf.MessageBytes.toBytes(MessageBytes.java:283)
zfile | at org.apache.coyote.http11.Http11OutputBuffer.write(Http11OutputBuffer.java:385)
zfile | at org.apache.coyote.http11.Http11OutputBuffer.sendHeader(Http11OutputBuffer.java:364)
zfile | at org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1047)
zfile | at org.apache.coyote.AbstractProcessor.action(AbstractProcessor.java:377)
zfile | at org.apache.coyote.Response.action(Response.java:210)
zfile | at org.apache.coyote.Response.sendHeaders(Response.java:453)
zfile | at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:285)
zfile | at org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:244)
zfile | at org.apache.catalina.connector.Response.finishResponse(Response.java:421)
zfile | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:373)
zfile | at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:389)
zfile | at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
zfile | at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:904)
zfile | at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1741)
zfile | at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
zfile | at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190)
zfile | at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
zfile | at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63)
zfile | at [email protected]/java.lang.Thread.runWith(Thread.java:1588)
zfile | at [email protected]/java.lang.Thread.run(Thread.java:1575)
zfile | at org.graalvm.nativeimage.builder/com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:837)
zfile | at org.graalvm.nativeimage.builder/com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:813)
root@ba83d482e08b:~# locale
LANG=C.UTF-8
LANGUAGE=
LC_CTYPE="C.UTF-8"
LC_NUMERIC="C.UTF-8"
LC_TIME="C.UTF-8"
LC_COLLATE="C.UTF-8"
LC_MONETARY="C.UTF-8"
LC_MESSAGES="C.UTF-8"
LC_PAPER="C.UTF-8"
LC_NAME="C.UTF-8"
LC_ADDRESS="C.UTF-8"
LC_TELEPHONE="C.UTF-8"
LC_MEASUREMENT="C.UTF-8"
LC_IDENTIFICATION="C.UTF-8"
LC_ALL=C.UTF-8
version: 4.3.1
- 从哪里点击的短链,前台生成还是后台复制。
- 部署方式?docker 还是本机直接运行。
- 如果是本机直接运行,操作系统及操作系统版本号。 如果可以的话,麻烦发个异常的短链到我 github 主页左侧邮箱。
---原始邮件--- 发件人: @.> 发送时间: 2025年6月16日(周一) 凌晨4:27 收件人: @.>; 抄送: @.***>; 主题: Re: [zfile-dev/zfile] 文件名称包含中文, 短链 302 跳转无法编码 (Issue #763)
Reopened #763.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>
- 在前端页面获取的短链
- docker 部署
services:
zfile:
container_name: zfile
restart: always
ports:
- '6000:8080'
environment:
- LANG=C.UTF-8
- LC_ALL=C.UTF-8
- TZ=Asia/Shanghai
volumes:
- '/data/zfile/db:/root/.zfile-v4/db'
- '/data/zfile/logs:/root/.zfile-v4/logs'
- '/data/zfile/file:/data/file'
- '/data/zfile/application.properties:/root/application.properties'
image: swr.cn-north-1.myhuaweicloud.com/zfile-dev/zfile:4.3.1
- 好的, 已发送, 请查收.
@zhaojun1998 补充一下, 本地存储没有这个问题, 我使用的是阿里云 oss 遇见这个问题.
目前此问题仅限同时满足以下三个条件:
- 阿里云对象存储
- 对象存储非私有存储
- 在 ZFile 填写了加速域名
首先不建议将对象存储配置为公开读(改完记得 zfile 中勾选 是否是私有空间 为是),这样可以临时解决短链问题,不过本 bug 也会在本周日前修复,完成后会关闭此 issue