Re: [Resin-interest] Binary image prepending http response

2007-07-12 Thread Serge Knystautas
Samuel,

Resin isn't really smart enough to make up random binary content, so I 
would try to identify what that binary content and then hope to locate a 
source of it (a file, a servlet, whatever).

Are you using filters by any chance?  This is a leap, but it seems like 
this is a servlet spec interpretation/implementation difference (or an 
implementation of something not clear in the spec).  The most common 
thing I've seen with Resin and Tomcat is how filters are handled.

But I would try to identify what that binary content is... maybe it's an 
ad from a hacked program for all we know... but I think identifying that 
will give clues as to what could be inserting it.

-- 
Serge Knystautas
Lokitech  software . strategy . design  http://www.lokitech.com
p. 301.656.5501
e. [EMAIL PROTECTED]

Samuel Le Berrigaud wrote:
 Hi all,
 
 Here is the problem we're facing:
 
 - Do a simple GET request to the server, the page we request is a
 'normal' html page containing images, js, css, etc...
 - From time to time the response to the HTTP request comes back as
 binary data where we expect a document for which the content type is
 text/html.
 
 We tried the same webapp with the exact same configuration on a Tomcat
 server and couldn't reproduce the problem. We haven't seen it on the
 many other application servers our application runs on either.
 However several customers reported the issue when using Resin 3.0.x.
 We therefore assume the issue comes from Resin. We tested a range of
 Resin versions from 3.0.15 to 3.0.23.
 
 Attached is an example of a file we get back as binary content. It
 indeed contains binary data as well as the expected html…
 
 Another thing  is that we have the 'keep-alive' attribute set on our
 requests and first wondered if it could have been the problem. Turning
 it off didn't solve the problem though.
 
 Any help would be appreciated. We understand that the information on
 this issue is a bit sparse but we couldn't think of anything else.
 Looking at the HTTP headers didn't help. Hopefully someone will have
 encountered this before and will be able to advise us on what is going
 on.
 
 Thanks,



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Binary image prepending http response

2007-07-11 Thread Samuel Le Berrigaud

As always I forgot the attachment.

SaM

On 7/12/07, Samuel Le Berrigaud [EMAIL PROTECTED] wrote:

Hi all,

Here is the problem we're facing:

- Do a simple GET request to the server, the page we request is a
'normal' html page containing images, js, css, etc...
- From time to time the response to the HTTP request comes back as
binary data where we expect a document for which the content type is
text/html.

We tried the same webapp with the exact same configuration on a Tomcat
server and couldn't reproduce the problem. We haven't seen it on the
many other application servers our application runs on either.
However several customers reported the issue when using Resin 3.0.x.
We therefore assume the issue comes from Resin. We tested a range of
Resin versions from 3.0.15 to 3.0.23.

Attached is an example of a file we get back as binary content. It
indeed contains binary data as well as the expected html…

Another thing  is that we have the 'keep-alive' attribute set on our
requests and first wondered if it could have been the problem. Turning
it off didn't solve the problem though.

Any help would be appreciated. We understand that the information on
this issue is a bit sparse but we couldn't think of anything else.
Looking at the HTTP headers didn't help. Hopefully someone will have
encountered this before and will be able to advise us on what is going
on.

Thanks,
--
Samuel Le Berrigaud




--
Samuel Le Berrigaud
5R/ÐÀd0‰‰0yhœÉm.0Cð\7‚ÁL¥©„±(Н𝗞¬q|¤Hžõ`ž9€ž¯¶c2Àžzàž;Ÿ©gnC2Ÿõ)÷IRúɟÜæŸÜ 5
  j x€ ¶¡ ¯¡àÜ©ê‘‹’?8º8²)öVX×t‡2¸ßAïydÕ'D.’Ir3[EMAIL 
PROTECTED]@¦H c—?¤‹²S—‡ÿ¡ÿDXG˜1Dþ\p=õhZTtI`9g‘?¨ðŠŠå
®À|Pꅉ#Çdó†¦6 ¦lŠ؀
pš°Q§wŠyÚP{'᧽¨ ÷Hèօ„j¨‘z¦¨Œzƒª‘:[EMAIL 
PROTECTED]@èu=ïtGv=FðsïYnK础`+¤¯¸’\–êžÉ|[EMAIL 
PROTECTED](pƒ€ø®t­û6­ÕŠ§Øª­Üš|p®âšä:¢æ誮#Ê®Hà®ð¯Â0¯¯P¯÷êþùº¯7ЯÿZ;°P°[
 »°
›»ü1|ÇÕ*¤)𶂣Qódß®‡ös×ÓfMybp‘34)Gpm×MÁ€+§p
ݱ¦`
•P  ÜÆl
š ÿÈdg
š“0 L¶ÿøj L+іè‡~÷pqšrñ ´§“zb´HËJ;LKµ7 [EMAIL PROTECTED]
f‹¶jëlÛnK[EMAIL PROTECTED]
ƒ[¸1ÿ1Ið+“1\`‚­Ë°ŒEùç [EMAIL PROTECTED]
­¶ ˆ~–êLÌhþÈ¥¶L¦¦C ¦6
   »V¥®(vm'7Ïf¡ZÁÄ!YS±Â°­L‹3Vÿ–Š$]ÊÕO4çLi{=
Djv7Á\ℾÉgóf©÷°[+Äuï;oiË
‡¦¦jjMÐÿȦ)övÑmÿÔO»…~‡^gÀè€ÀW–'™­
|±†Á)\Á‹pÁŒ|Ì!Œ7$œŒÂE Â,ì
.|¦EÃ3LÃ6ŒÃ©»ÃðÐÃ?,AÌOC¼
EwµÁpÀþ‚­_áÀ™÷{ª³À[EMAIL PROTECTED]ec8pµgû¿€/çB• 
Oƒ»[x°è7o%à™àêL,ðÈZ£Ëº[pòOÐ [EMAIL PROTECTED]
Èô÷+ƒ¼§=TU‘°ŠœŒ¬Ÿɞ0ÉìPÉVpÉyÉ›ŒlžÊ+,£|¥\§l©Œ«¼­\ ¯,[EMAIL 
PROTECTED](ò+cKșWÌ=å“ÌTkõÈàF€‰jªZà[tQU iëLÎÄ
j–¶ää]ÅmëÌ°¼œ®ˆµ]Þé™Àþ(c›G›½ F,‡QÏ÷#ùû|È#TWн}Ð8Ð-
ýÐ-Ñí -­
m
½ Í
½$]}Ò)½ÒsØÒQöÒ1ݖ¹Ñ­q   7(Mž(rp%(V 9oÜÔ«¦¹l
ªqèµjfo_ð%ðÈêEDPýxÎÔ‡ýóætŦ\”]yÛÙÔ@
mèg
-¦çpŠë°B÷Ð)l¹ÖáÖ2P­9-×ýB׸kw×E°×}]Øó0؅}‡Ø°Øýؑ=ÙY–

˜½šþÝܝ·ŸÚâ0Ú¥½§}ŠªÍÚ¥xÌ4ñ‘48Ml6x©sülw¡l½°Bj¦fɀXjŠ~á 
º}ƒû§TÐÌg©uëŒ=¸0CÞÀ|=êõÕÿH Ù
ð0]ÌdñRÅà·Ù-ÏlIW⠏æ:/[EMAIL PROTECTED]‘Ö¸€œm¶
¾ ^lš°öðÙ7°ø`o ûâÕPá   CU€Xš¬× ©ÎÄ܆Xƒ»
ÿș]Å   ƒ»Vö6ÓUǀ}Š£

ü„LƒK§™ÖNâó°
¾…(Î*îu-Ζ/ãâ0ã5n7~9N
;Nþ=ÀäB~Dn俀䔠äÈÀäNàä÷å, [EMAIL PROTECTED]æ-ÆLâ 
c!P†r%Aò=ÛWÍá)¤8;̤»õOδ¡¨XÑF
[EMAIL PROTECTED]
œ··lÊȄLtu–:ªkÅ
£ªX»Õ0”°uË
\GWà
0ôÙ¹¬
ÌCèW
Φ„Càʦ¾Ÿn
¡[EMAIL PROTECTED]
ñê±Þ³^ë¾pë¹¾ë½þëjìÃ~Å~ìؐìËîÍþìíÓ
Õ~íԐíÛ^ÝþímîÅ0îmPîT4ã È$ÙQþ:[EMAIL PROTECTED],ÚIEÐUÿD
v`»U·…p¶ É¦t
[EMAIL PROTECTED]   ;2= /ò¾UòŸpò™A+_.óó46óÈ 
ó’Àó%àóxôù)ô†5oFßH¯ô’ÀôNO   
P_ìÆÎUïÍW¿¦Y¿õvÐõƒðõwöÅ0öœpegϖÆ4ì§yæÛ`$M/CÌrÓåÓµêóÌL\ÇOÇðOˆ•à6À¦ü[
“pµMep‡0Ú¤]uþà0|[EMAIL PROTECTED] IèÇ°‘
_ò¡Ì[ÿ„~Ä®õ=YÄ·aÚk_¸rµ‰™F¿rwcÛä·EKª±BÿÔQ¢*UŠ'qâ~õéãÇÏ«WŸ’%“$‰¡[^¼hђ+—/'NlØhÓ¦
3Z¸ðÀ^¸páÁ)¼jÕV­ÂYªX±™? 
aÃVOi=xM—mºnݹqã*7o^žȘ1ƒ°GbÅÒʎ]=wîœ*}»Tª7o½zµHÐ B…
B”HÑF=‚IÒ$J•,]J‚sf͛9wöüthÑUG“.þm
ïéè¦â A{/]:eʬXáB62b*DŽhÑ£G‹;v,ãÆ/MšlÙâÆMÂRHuãyñ‚+0`‹)ºÐÖ­[vïÜqqâ„À!Cð°Äɂ‰ïßO~ùžQºpƒ¥
¾*%΅ŪË7MC­7ÕXs
¶Ùh³
7Ýxð)à„+¬¸ã’[.!çȁNº¨³»b´ãÎ;ðÄ#ÏôðP½öދO’ù껯üöã¿ÿ˜
[EMAIL PROTECTED]
1Ä°k(U¾øþ0Š(„’ðh Ô;‰8 H=;†Tª­i Äk”:g¨Óv¬Gª|
H!‰TÊÈtT’I'¡”’)*­l+Ë-»ü2Ì1})óLhÒ\³Í7ã,fÎ:ïÌsÏú,[EMAIL PROTECTED]
öPNeÔQH%…†RK#
ªùzæ™s´ÒŠº#–\2†tˆŽ¥†âyJy®l¨'kæP-tÐa%J­Î9‡5Ö8$ßC
‰r(;9 „òbPÈ3Ž¢aõŒÀ!U  S©ÞZ'´Þ Ýø©jUQ庰ç2Èxâ  
V^¹(Éå‘^©ÖùX[¦™HºÎ1S76«þ/Ìw‘ùå—0Ãd…JNˆ…ò©ˆnT=õšf†€OZ¨ÒuÚ
’·(͔Êh©°f‘½!Ùd”UfY—}¹)™¥ªù朩ٹgr~™¡‹™¤—¸§‡€Ú©©¶Áê«Ïzkº–
ljÄîìÍîÑì§l±e•„¢Œ’œ¢?ù$_åܨ¢
œ±Ë®Ÿp±‹Ñ†IhØ8;·ˆ¹:€aåØq›¤’J”‹ýƒ
’Üê“l0Á„ÆMPOa«É©ÒĹsßÒxãÐ/å±cÒM/u_Tÿ…uי—Úk¿=wHvi߃ßÂðŠ§ƒãy˃]þœ÷¼èŒzÖ£ÁI°—5l¯ÝÍ÷Â7¾Þ”ÏGèaµˆá([EMAIL
 PROTECTED] ¢/Ü°¤=8Ù'¸¤5¤„?áNð€œ“éA `#èW¸€ 
}’ÜÔn`0í1­ÓSOÃútGYJ*¶[…:ÎB.¦í#´F   O˜Â櫅|x!b8öᆫÈ!NxHQˆ   
$¢€D«)‘‰tY 
EPÑV\µØ±.6Ò7ô Ç4†B/HiCcžLPÄV¯ÊAJCŠaûƒëxÊ»àGT ‚­Ô….؄±DSÈ
ª§)[EMAIL PROTECTED]«vYHÔáHfú¦-J   wfb¦z¤…8©¯¦6…0„!!£†Ô#­ 
H…,h±Ît²I