When I was using the wc-api-java sdk to call to wocommerce's get orders or get products api, I found that once the ISO8601 date was passed as a parameter, like this date: 2023-02-21T14:46:25, The following error will shown
{"code":"woocommerce_rest_authentication_error","message":"Invalid Signature-provided signature does not match.","data":{"status":401}}.
When I was using the wc-api-java sdk to call to wocommerce's get orders or get products api, I found that once the ISO8601 date was passed as a parameter, like this date: 2023-02-21T14:46:25, The following error will shown
{"code":"woocommerce_rest_authentication_error","message":"Invalid Signature-provided signature does not match.","data":{"status":401}}.
Later I found the following difference by comparing the official php sdk code. php sdk url:https://packagist.org/packages/automattic/woocommerce
php sdk:
after%3D2023-02-21T13%253A00%253A23%26before%3D2023-02-21T13%253A00%253A23
java sdk:after%3D2023-02-21T13%3A00%3A23%26before%3D2023-02-21T13%3A00%3A23
I found this problem the java sdk is not converting % to %25 when it executes the percentEncode() method.