<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link rel=File-List href="cid:filelist.xml@01C1BADC.4A52DB00">
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:HyphenationZone>21</w:HyphenationZone>
  <w:EnvelopeVis/>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;
        mso-font-charset:0;
        mso-generic-font-family:swiss;
        mso-font-pitch:variable;
        mso-font-signature:553679495 -2147483648 8 0 66047 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0cm;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;
        text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;
        text-underline:single;}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Courier New";
        mso-fareast-font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal;
        mso-style-noshow:yes;
        mso-ansi-font-size:10.0pt;
        mso-bidi-font-size:10.0pt;
        font-family:Arial;
        mso-ascii-font-family:Arial;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        mso-style-noshow:yes;
        mso-ansi-font-size:10.0pt;
        mso-bidi-font-size:10.0pt;
        font-family:Arial;
        mso-ascii-font-family:Arial;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;
        mso-header-margin:35.4pt;
        mso-footer-margin:35.4pt;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */ 
 table.MsoNormalTable
        {mso-style-name:"Table Normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
        mso-para-margin:0cm;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=FR link=blue vlink=purple style='tab-interval:35.4pt'>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Tahoma><span lang=EN-US style='font-size:
10.0pt;font-family:Tahoma;mso-ansi-language:EN-US'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> Julien Soyer
[mailto:julien_soyer@hotmail.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> jeudi 21 février 2002
13:32<br>
<b><span style='font-weight:bold'>To:</span></b> 'opencms-dev@www.opencms.com'<br>
<b><span style='font-weight:bold'>Subject:</span></b> Image and other file
types upload</span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>Hi all,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>The upload of images and pdf
files still does not work when you use an Apache-Tomcat configuration.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>My system is :<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>Apache 1.3.22<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>Mod_webapp 4.0.2<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>Tomcat 4.0.1<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>The upload of an image raises
the following exception:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'><o:p> </o:p></span></font></p>

<pre><font size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;
mso-ansi-language:EN-GB'>java.lang.StringIndexOutOfBoundsException: String index out of range: -1<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;mso-ansi-language:
EN-GB'><span style='mso-tab-count:1'>        </span>at java.lang.StringBuffer.setLength(StringBuffer.java(Compiled Code))<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;mso-ansi-language:
EN-GB'><span style='mso-tab-count:1'>        </span>at com.opencms.core.CmsMultipartInputStreamHandler.readLine(CmsMultipartInputStreamHandler.java:116)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;mso-ansi-language:
EN-GB'><span style='mso-tab-count:1'>        </span>at com.opencms.core.CmsRequestHttpServlet.readNextPart(CmsRequestHttpServlet.java:534)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;mso-ansi-language:
EN-GB'><span style='mso-tab-count:1'>        </span>at com.opencms.core.CmsRequestHttpServlet.readRequest(CmsRequestHttpServlet.java:672)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;mso-ansi-language:
EN-GB'><span style='mso-tab-count:1'>        </span>at com.opencms.core.CmsRequestHttpServlet.<INIT>(CmsRequestHttpServlet.java:155)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;mso-ansi-language:
EN-GB'><span style='mso-tab-count:1'>        </span>at com.opencms.core.OpenCmsHttpServlet.doPost(OpenCmsHttpServlet.java:254)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;mso-ansi-language:
EN-GB'><span style='mso-tab-count:1'>        </span>at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;mso-ansi-language:
EN-GB'><span style='mso-tab-count:1'>        </span>at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;mso-ansi-language:
EN-GB'><span style='mso-tab-count:1'>        </span>at com.opencms.boot.OpenCmsServlet.service(OpenCmsServlet.java:117)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;mso-ansi-language:
EN-GB'><span style='mso-tab-count:1'>        </span>at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;mso-ansi-language:
EN-GB'><span style='mso-tab-count:1'>        </span>at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;mso-ansi-language:
EN-GB'><span style='mso-tab-count:1'>        </span>at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;mso-ansi-language:
EN-GB'><span style='mso-tab-count:1'>        </span>at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;mso-ansi-language:
EN-GB'><span style='mso-tab-count:1'>        </span>at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;mso-ansi-language:
EN-GB'><span style='mso-tab-count:1'>        </span>at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;mso-ansi-language:
EN-GB'><span style='mso-tab-count:1'>        </span>at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;mso-ansi-language:
EN-GB'><span style='mso-tab-count:1'>        </span>at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;mso-ansi-language:
EN-GB'><span style='mso-tab-count:1'>        </span>at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;mso-ansi-language:
EN-GB'><span style='mso-tab-count:1'>        </span>at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;mso-ansi-language:
EN-GB'><span style='mso-tab-count:1'>        </span>at org.apache.catalina.core.StandardContext.invoke(Unknown Source)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;mso-ansi-language:
EN-GB'><span style='mso-tab-count:1'>        </span>at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;mso-ansi-language:
EN-GB'><span style='mso-tab-count:1'>        </span>at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;mso-ansi-language:
EN-GB'><span style='mso-tab-count:1'>        </span>at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;mso-ansi-language:
EN-GB'><span style='mso-tab-count:1'>        </span>at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;mso-ansi-language:
EN-GB'><span style='mso-tab-count:1'>        </span>at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;mso-ansi-language:
EN-GB'><span style='mso-tab-count:1'>        </span>at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;mso-ansi-language:
EN-GB'><span style='mso-tab-count:1'>        </span>at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;mso-ansi-language:
EN-GB'><span style='mso-tab-count:1'>        </span>at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;mso-ansi-language:
EN-GB'><span style='mso-tab-count:1'>        </span>at org.apache.catalina.connector.warp.WarpRequestHandler.handle(Unknown Source)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;mso-ansi-language:
EN-GB'><span style='mso-tab-count:1'>        </span>at org.apache.catalina.connector.warp.WarpConnection.run(Unknown Source)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;mso-ansi-language:
EN-GB'><span style='mso-tab-count:1'>        </span>at java.lang.Thread.run(Thread.java:498)<o:p></o:p></span></font></pre>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>while the upload of pdf files
seems to get Apache stuck...<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>Note that I tried the upload
using opencms 4.4.6 and 4.6 rc and that the results are identical.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>Any ideas?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>Regards,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>Julien<o:p></o:p></span></font></p>

</div>

</body>

</html>