GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — 投诉通知验签错误 · Issue #3288 · binarywang/WxJava

投诉通知验签错误 #3288

New issue
Copy link
New issue
Copy link
Closed
#3422
Closed
投诉通知验签错误#3288
#3422
Copy link

Description

@je45
je45
opened on May 16, 2024
Issue body actions

简要描述

微信支付投诉通知验签错误,通知头部签名Base64解码异常。

模块版本情况

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

详细描述

导致的原因是因为微信的签名探测,会生成"WECHATPAY/SIGNTEST/"开头的签名值,导致签名base64解码异常。
希望能统一处理下微信签名探测流量。

日志

java.lang.IllegalArgumentException: Last unit does not have enough valid bits
	at java.util.Base64$Decoder.decode0(Base64.java:734) ~[?:1.8.0_391]
	at java.util.Base64$Decoder.decode(Base64.java:526) ~[?:1.8.0_391]
	at java.util.Base64$Decoder.decode(Base64.java:549) ~[?:1.8.0_391]
	at com.github.binarywang.wxpay.v3.auth.CertificatesVerifier.verify(CertificatesVerifier.java:33) ~[weixin-java-pay-4.6.0.jar:?]
	at com.github.binarywang.wxpay.v3.auth.CertificatesVerifier.verify(CertificatesVerifier.java:46) ~[weixin-java-pay-4.6.0.jar:?]
	at com.github.binarywang.wxpay.v3.auth.AutoUpdateCertificatesVerifier.verify(AutoUpdateCertificatesVerifier.java:121) ~[weixin-java-pay-4.6.0.jar:?]
	at com.github.binarywang.wxpay.service.impl.BaseWxPayServiceImpl.verifyNotifySign(BaseWxPayServiceImpl.java:351) ~[weixin-java-pay-4.6.0.jar:?]
	at com.github.binarywang.wxpay.service.impl.BaseWxPayServiceImpl.parseComplaintNotifyResult(BaseWxPayServiceImpl.java:1294) ~[weixin-java-pay-4.6.0.jar:?]

Activity

  1. binarywang commented on May 22, 2024

    @binarywang
    binarywang
    on May 22, 2024
    Owner
    More actions

    你有什么修复办法,可以直接提交代码

  2. stale commented on Jul 21, 2024

    @stale
    staleBot
    on Jul 21, 2024 – with Stale
    More actions

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  3. stale
    added
    stale
    on Jul 21, 2024
  4. stale
    closed this as completedon Jul 28, 2024
  5. binarywang
    reopened this on Aug 21, 2024
  6. binarywang
    removed
    stale
    on Aug 21, 2024
  7. geqiliang commented on Sep 23, 2024

    @geqiliang
    geqiliang
    on Sep 23, 2024
    More actions
    com.github.binarywang weixin-java-pay 4.6.5.B 我已经更新pom到最新版 发现还是会报这个异常,异常后回调请求会第二次 执行来正确更新订单状态,是否是通过重新进行回调请求解决了这个异常问题
  8. binarywang
    linked a pull request that will close this issue🎨【微信支付】处理微信签名探测流量 #3422on Nov 29, 2024
  9. binarywang
    added a commit that references this issue on Nov 29, 2024

    🎨 #3288【微信支付】修复由于微信签名探测导致的验签错误的问题

    c6a38ae
  10. binarywang
    closed this as completedin #3422on Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.