Skip Menu |

This queue is for tickets about the eBay-API-Simple CPAN distribution.

Report information
The Basics
Id: 132301
Status: new
Priority: 0/
Queue: eBay-API-Simple

People
Owner: Nobody in particular
Requestors: osatools [...] tutanota.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: If enable_attributes is set, then any API call with keywords field will break
Date: Mon, 6 Apr 2020 06:22:43 +0200 (CEST)
To: bug-ebay-api-simple [...] rt.cpan.org
From: osatools [...] tutanota.com
If enable_attributes is set (necessary for findItemsByProduct search productId field), then it becomes necessary to specify elements like this {keywords => ['elemvalue']} since {keywords => 'attrvalue'} would cause an attribute instead. However, in get_request_body there is some utf8 encoding going on that assumes specifically that the keywords hash key is a simple scalar. It just does Encode::encode('utf8', $self->{call_data}->{keywords}), so in the case of enabling attributes this will always break any call using keywords field. The function needs test whether the field is scalar hash or array and go down and apply the encoding appropriately. -- Securely sent with Tutanota. Get your own encrypted, ad-free mailbox: https://tutanota.com