apigee / microgateway-plugins

Plugins for microgateway, oauth, analytics, spike arrest, etc...
Other
30 stars 54 forks source link

json2xml plugin not threadsafe #182

Open mecclesgoogle opened 4 years ago

mecclesgoogle commented 4 years ago

several variables are defined instance level which causes concurrency issues.

For example. if a request is disabled by 'x-apigee-json2xml-disable' header, disable=true will get set and thereon apply to all requests.

These variables should be scoped to the request object so that they only apply to the specific request thread.