-
Notifications
You must be signed in to change notification settings - Fork 8
Signature needs to be escaped for POST methods #15
Copy link
Copy link
Open
Description
Amazon::MWS::Routines::sign_request sometimes pads the signature with "=", but it neglects to escape the signature when included in the request body.
For example, when trying to use CreateInboundShipmentPlan I received the following error from Amazon:
<?xml version="1.0"?> <ErrorResponse xmlns="https://mws.amazonservices.com/"> <Error> <Type>Sender</Type> <Code>InvalidParameterValue</Code> <Message>Invalid query string provided - AWSAccessKeyId=...&Signature=...A= is not valid; the value of a query string parameter may not contain a '=' delimiter</Message> </Error> <RequestID>...</RequestID> </ErrorResponse>
The attached patch seems to solve the issue for me.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels