WxJava icon indicating copy to clipboard operation
WxJava copied to clipboard

HttpResponseProxy#extractFileNameFromContentString 正则匹配失败

Open RayL555 opened this issue 1 year ago • 0 comments

简要描述

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)

RayL555 avatar Jun 22 '24 06:06 RayL555