From: Alexis T. <ale...@sm...> - 2014-04-24 14:20:16
|
I added a note to the mantis. In ResponseCapturingWrapper.getResponse() line 429 : httpClientResponse.setEntity(new ByteArrayEntity(internalOutputStream.toByteArray(), 0, Math.min( bytesWritten, bufferSize), contentType)); We should take the max not the min. Actually, buffer size is set to 2048 in jboss AS, this is why content is truncated. Le 2014-04-24 16:05, Francois-Xavier Bonnet a écrit : > Thanks for the files. I have been able to reproduce the issue. Unfotrunately I will not have time today to investigate more on it. > > 2014-04-24 10:56 GMT+02:00 Nicolas Richeton <nic...@gm...>: > >> Hi Johann, >> >> Thanks for these details. >> >> The bugtracker is here : http://sourceforge.net/apps/mantisbt/webassembletool/ [6] >> (you can get this link on esigate.org [7]) >> >> We moved the code to github yesterday (https://github.com/esigate/esigate [8]). This is now the official code repository. Snapshots and releases are publish from this repo. >> >> ProxyFilter is the way to go, but is new on 5.0. This could be a bug. >> >> -> Francois-Xavier, any idea on this ? >> >> Please open an issue. If you can create a test case or a standalone app which demonstrate the issue, it would be even better. >> I'l take a look at this asap. >> >> -- >> Nicolas >> >> Le 24 avr. 2014 à 09:58, Johann Böhler <joh...@1u...> a écrit : >> >>> Hi Nicolas, >>> >>> I'm new to ESIGate, so I'm sorry if my questions aren't as precise :) >>> >>> I'm using "org.esigate:esigate-servlet:5.0-SNAPSHOT" as the dependency for my .war. >>> >>> I added the ProxyFilter to my web.xml and deployed everything on JBoss 7.1.1.Final. It's a default JBoss instance, as you can download it from their website. >>> >>> So it works perfectly for small pages, but when I added the "AdminLTE" template (https://github.com/almasaeed2010/AdminLTE [3]) the problems started to occur. I can't open the index page properly. The source ends with >>> >>> <div class="pull-left"> >>> >>> <img src="resources/img/avatar2.png" class="img-cir >>> >>> The rest of it is dropped. >>> >>> I don't use the "esigate.properties", instead I have a Singleton/Startup bean that uses the DriverFactory in a PostConstruct method to confgure it with a Properties instance. This is basically the code for the initialization: >>> >>> Properties properties = new Properties(); >>> >>> properties.put("esigate.remoteUrlBase","http://localhost:8080/test [4]"); >>> properties.put("esigate.extensions","org.esigate.servlet.ServletExtension,org.esigate.extension.Esi"); >>> >>> properties.put("esigate.mappings","/*"); >>> properties.put("esigate.useCache", "false"); >>> >>> properties.put("esigate.maxObjectSize", "0"); >>> >>> DriverFactory.configure(properties); >>> >>> So it's pretty basic, nothing special. As I mentioned, when caching is turned on, the only thing I get as a response when I call http://localhost:8080/test/index.html [5] is an error message as send by the BasicHttpCache in http-client. So I turned it off, to see something at least. I also already tried to replace the httcomponents library by version 4.3.3 without any effect. I didn't try the other caches though. But caching is not the biggest issue for me >>> >>> One more question, where can I open a bug / feature request? Do you have a public issue tracker? >>> I also read somewhere that you will migrate the project to GitHub. Do you have a timeline for this? >>> >>> Best regards >>> Johann >>> >>> >>> >>> ------------------------- >>> >>> VON: Nicolas Richeton <nic...@gm...> >>> GESENDET: Mittwoch, 23. April 2014 19:09 >>> AN: Johann Böhler >>> CC: web...@li... >>> BETREFF: Re: [EsiGate-users] Site exceeds 2KB >>> >>> Hi Johann, >>> >>> We never hit this issue. Esigate is in production on very large pages. >>> >>> Feel free to open a bug to discuss on it. We will need more details : >>> - Which esigate version are you using ? >>> - What is your setup esigate-server (standalone) / esigate-war (WAR in tomcat/other) / esigate-core (API) >>> - logs (fetch.log/fragment.log) >>> - configuration esigate.properties >>> - backend/provider server used >>> - does your backend/provider application uses any of these : 100-continue, long-polling, websockets ? >>> >>> Nicolas >>> >>> Le 23 avr. 2014 à 17:55, Johann Böhler <joh...@1u...> a écrit : >>> >>>> Hi guys, >>>> >>>> I just had a look at your library and it's really pretty awesome. >>>> >>>> But I have problem when I'm starting to render pages which exceed 2KB in size. First I got the error message >>>> >>>> Received incomplete response with Content-Length 12341234 but actual body length 2048 >>>> >>>> @ BasicHttpCache in http-client >>>> >>>> When I turned off caching, the website to display gets cut after it hits the 2KB limit. So basically I can only see the header of the website. >>>> >>>> Can you help me? >>>> >>>> Best regards, >>>> >>>> Johann >>>> >>>> ------------------------------------------------------------------------------ >>>> Start Your Social Network Today - Download eXo Platform >>>> Build your Enterprise Intranet with eXo Platform Software >>>> Java Based Open Source Intranet - Social, Extensible, Cloud Ready >>>> Get Started Now And Turn Your Intranet Into A Collaboration Platform >>>> http://p.sf.net/sfu/ExoPlatform_______________________________________________ [1] >>>> Webassembletool-users mailing list >>>> Web...@li... >>>> https://lists.sourceforge.net/lists/listinfo/webassembletool-users [2] >> >> ------------------------------------------------------------------------------ >> Start Your Social Network Today - Download eXo Platform >> Build your Enterprise Intranet with eXo Platform Software >> Java Based Open Source Intranet - Social, Extensible, Cloud Ready >> Get Started Now And Turn Your Intranet Into A Collaboration Platform >> http://p.sf.net/sfu/ExoPlatform [9] >> _______________________________________________ >> Webassembletool-users mailing list >> Web...@li... >> https://lists.sourceforge.net/lists/listinfo/webassembletool-users [2] > > ------------------------------------------------------------------------------ > Start Your Social Network Today - Download eXo Platform > Build your Enterprise Intranet with eXo Platform Software > Java Based Open Source Intranet - Social, Extensible, Cloud Ready > Get Started Now And Turn Your Intranet Into A Collaboration Platform > http://p.sf.net/sfu/ExoPlatform [9] > > _______________________________________________ > Webassembletool-users mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webassembletool-users [2] Links: ------ [1] http://p.sf.net/sfu/ExoPlatform_______________________________________________ [2] https://lists.sourceforge.net/lists/listinfo/webassembletool-users [3] https://github.com/almasaeed2010/AdminLTE [4] http://localhost:8080/test [5] http://localhost:8080/test/index.html [6] http://sourceforge.net/apps/mantisbt/webassembletool/ [7] http://esigate.org [8] https://github.com/esigate/esigate [9] http://p.sf.net/sfu/ExoPlatform |