Skip to content

HttpResponseProxy#extractFileNameFromContentString 正则匹配失败 #3316

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
RayL555 opened this issue Jun 22, 2024 · 2 comments
Closed

HttpResponseProxy#extractFileNameFromContentString 正则匹配失败 #3316

RayL555 opened this issue Jun 22, 2024 · 2 comments
Milestone

Comments

@RayL555
Copy link

RayL555 commented Jun 22, 2024

简要描述

HttpResponseProxy#extractFileNameFromContentString 正则匹配失败

模块版本情况

  • WxJava 模块名: weixin-java-common
  • WxJava 版本号: 4.6.0

详细描述

HttpResponseProxy#extractFileNameFromContentString方法中 正则匹配失败,匹配不上文件名

入参:
content=attachment; filename*=utf-8''%E8%90%A5%E4%B8%9A%E6%89%A7%E7%85%A7.jpg; filename="����.jpg"

日志

message:错误代码:-99,错误信息:无法获取到文件名,header信息有问题
exception: me.chaniar,weixin.common.error.WxErrorException: 错误代码:-99,错误信息:无法获取到文件名,header信息有问题
stackTrace: me.chanjar.weixin.cp.api.impl.BaseWxCpServicelmpl.executelnternal(BaseWxCpServicelmpl.java:361),
me.chanjarweixin.cp.api.impl.BaseWxCpServicelmpl.execute(BaseWxCpServicelmpl.java:289)
me.chanjar.weixin.cp.api.impl.WxCpMediaServicelmpl.download(WxCpMediaServicelmpl.java:78)

@binarywang
Copy link
Owner

欢迎直接提供修复代码

@binarywang binarywang added this to the 4.6.5 milestone Aug 20, 2024
@binarywang
Copy link
Owner

类似问题 #3348

@binarywang binarywang modified the milestones: 4.6.5, 4.6.4 Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants