From: Francois-Xavier B. <fra...@ce...> - 2014-04-28 14:07:25
|
Hi Johann, The bug is fixed. Could you check with the latest snapshot ? 2014-04-24 16:20 GMT+02:00 Alexis THAVEAU <ale...@sm...>: > 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/ >> (you can get this link on esigate.org) >> >> We moved the code to github yesterday (https://github.com/esigate/esigate). >> 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) 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"); >> >> 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 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_______________________________________________ >> Webassembletool-users mailing list >> Web...@li... >> https://lists.sourceforge.net/lists/listinfo/webassembletool-users >> >> >> >> ------------------------------------------------------------------------------ >> 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 >> _______________________________________________ >> Webassembletool-users mailing list >> Web...@li... >> https://lists.sourceforge.net/lists/listinfo/webassembletool-users >> >> > ------------------------------------------------------------------------------ > 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 Platformhttp://p.sf.net/sfu/ExoPlatform > > > _______________________________________________ > Webassembletool-users mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/webassembletool-users > > > > ------------------------------------------------------------------------------ > 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 > _______________________________________________ > Webassembletool-users mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webassembletool-users > > |