reverbdotcom / reverb-magento

Magento 1.x plugin for syncing with Reverb
Other
7 stars 10 forks source link

Magento sends list with empty string for category mapping sometimes: [""] #236

Closed skwp closed 8 years ago

skwp commented 8 years ago

We are seeing this in some requests

category_uuids:[""]

In other words it's an array with one element, which is an empty string. This is not a valid mapping. If no mappings are present we should send an empty array.

dunagan5887 commented 8 years ago

@skwp Should I begin work on this one?

skwp commented 8 years ago

Yes if this is a quick thing please let's knock it out

dunagan5887 commented 8 years ago

Looking at the code I'm not sure how this would be happening on the current version of the module. I can put in a fix to try to prevent this, but that would not address whatever deeper issue is causing this issue. Is there any way we could get a database dump for one of the instances sending these requests? Also could you provide the entire requests which contains the empty category_uuids array?