easysoa/EasySOA — Issue #51: Discovery monitoring proxy doesn't work with compressed responses
Author: JGuillemotte
Created: 2011-10-12 14:14:21+00:00
State: open

To reproduce :

Start the discovery proxy with the test starter "ProxyStarter.java".
Start the ui scaffolding proxy with the test starter "FormGeneratorMonitoredTester.java".

Open the page "Form_generator_links.html" (in the ui scaffolder proxy project => src/test/resources) in a web browser.

To have a not working example :
Click on the link "FraSCAti Fibonnacci on Cloudbees", an html form is generated, enter 10 as parameter and click on the submit button. No response is displayed. This is because the distant service send back a compressed response. The monitoring proxy is not able to work with and send back to the client a String response ... and the client doesn't undestand ...

To have a working example :
Click on the link "FraSCAti Fibonnacci on Amazon elasticbeanstalk", an html form is generated, enter 10 as parameter and click on the submit button. The response is displayed and is equals to 55.

Solution to solve this problem :

1 - Add a deflate/unzip feature to the proxy, this can be useful in the future to improve the service detection.

OR

2 - Send back the received response without to convert it in a String (change the BasicResponseHandler by an other handler)