<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
{font-family:"Trebuchet MS";
panose-1:2 11 6 3 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Nur Text Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Sprechblasentext Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
p.b4237942-0b96-4ca9-aae7-a3b261fabea8, li.b4237942-0b96-4ca9-aae7-a3b261fabea8, div.b4237942-0b96-4ca9-aae7-a3b261fabea8
{mso-style-name:b4237942-0b96-4ca9-aae7-a3b261fabea8;
margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.NurTextZchn
{mso-style-name:"Nur Text Zchn";
mso-style-priority:99;
mso-style-link:"Nur Text";
font-family:Consolas;}
span.SprechblasentextZchn
{mso-style-name:"Sprechblasentext Zchn";
mso-style-priority:99;
mso-style-link:Sprechblasentext;
font-family:"Tahoma","sans-serif";}
p.33994d8e-f74f-46f8-b122-3a7cfb675f81, li.33994d8e-f74f-46f8-b122-3a7cfb675f81, div.33994d8e-f74f-46f8-b122-3a7cfb675f81
{mso-style-name:33994d8e-f74f-46f8-b122-3a7cfb675f81;
margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
p.PlainText, li.PlainText, div.PlainText
{mso-style-name:"Plain Text";
mso-style-link:"Plain Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:"Calibri","sans-serif";}
span.E-MailFormatvorlage25
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
p.BalloonText, li.BalloonText, div.BalloonText
{mso-style-name:"Balloon Text";
mso-style-link:"Balloon Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
span.E-MailFormatvorlage28
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.E-MailFormatvorlage29
{mso-style-type:personal-reply;
font-family:"Verdana","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>In the OpenCms<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>./webapp/WEB-INF/config/opencms-workplace.xml file <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>In the node around line 40:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><maxfileuploadsize>-1</maxfileuploadsize><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>The default “-1” means “no limit”.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p> </o:p></span></p><div><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Kind Regards,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Alex.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif"'> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>-------------------<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Alexander Kandzior<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:black'>Visit OpenCms Days 2012 Conference and Expo <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:black'>September 25 to 25, 2012 in Cologne, Germany <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:black'><a href="http://www.opencms-days.org/"><span lang=EN-US style='color:blue'>http://www.opencms-days.org</span></a></span><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:black'> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Alkacon Software GmbH - The OpenCms Experts <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>http://www.alkacon.com - http://www.opencms.org <o:p></o:p></span></p></div><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org] <b>On Behalf Of </b>Nick Porter<br><b>Sent:</b> Wednesday, April 11, 2012 3:21 PM<br><b>To:</b> The OpenCms mailing list<br><b>Subject:</b> Re: [opencms-dev] FW: FW: Max File Upload Size.<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=b4237942-0b96-4ca9-aae7-a3b261fabea8> <o:p></o:p></p><p class=b4237942-0b96-4ca9-aae7-a3b261fabea8> <o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Okay, so I’ve been trawling through the OpenCMS source on a tip from the Tomcat users mailing list looking for the call to the apache commons FileUpload lib. Apparently when FileUpload is invoked it takes max size parameter and they suggested I check to see if it is being set. I believe I’ve found the code that calls FileUpload around line 536 in the CmsUploadBean.java file. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> long maxFileSizeBytes = OpenCms.getWorkplaceManager().getFileBytesMaxUploadSize(getCmsObject());<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I’m not a developer but that line suggests to me that there is a setting somewhere in the Workplace where the maximum size of file uploads is set. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Can anybody point me in the right direction of where I might find or set this parameter?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><p class=b4237942-0b96-4ca9-aae7-a3b261fabea8> <o:p></o:p></p><p class=b4237942-0b96-4ca9-aae7-a3b261fabea8>-- <o:p></o:p></p><p class=b4237942-0b96-4ca9-aae7-a3b261fabea8><span style='font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#005288'>Tradar Limited is a limited company registered in England and Wales. Registered number: 3431380. </span><o:p></o:p></p><p class=b4237942-0b96-4ca9-aae7-a3b261fabea8><span style='font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#005288'>Registered office: 20-21 Jockey's Fields, London. WC1R 4BW</span><o:p></o:p></p><p class=b4237942-0b96-4ca9-aae7-a3b261fabea8> <o:p></o:p></p><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <a href="mailto:opencms-dev-bounces@opencms.org">opencms-dev-bounces@opencms.org</a> [<a href="mailto:opencms-dev-bounces@opencms.org">mailto:opencms-dev-bounces@opencms.org</a>] <b>On Behalf Of </b>Nick Porter<br><b>Sent:</b> 10 April 2012 11:56<br><b>To:</b> The OpenCms mailing list<br><b>Subject:</b> Re: [opencms-dev] FW: FW: Max File Upload Size.<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p><p class=33994d8e-f74f-46f8-b122-3a7cfb675f81> <o:p></o:p></p><p class=33994d8e-f74f-46f8-b122-3a7cfb675f81> <o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Alberto, thx for responding.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoPlainText><span style='color:#1F497D'>I have since been able to get going the Webkit web browser </span><span style='color:#376092'>recommended by Rüdiger for testing, plus the latest versions of Chrome and Opera both of which should be able to handle uploads >4GB according to the link you supplied.<o:p></o:p></span></p><p class=MsoPlainText><span style='color:#376092'><o:p> </o:p></span></p><p class=MsoPlainText><span style='color:#376092'>With all of these browsers I found that if I uploaded a file of 1.6GB it would hang at 99% and not complete. With files of 2GB I would see a negative percentage in the GWT-Upload progress dialog which would eventually error with;<o:p></o:p></span></p><p class=MsoPlainText><span style='color:#376092'><o:p> </o:p></span></p><p class=MsoPlainText><span style='color:#376092'>==================<o:p></o:p></span></p><p class=MsoPlainText><span style='color:#376092'>Unexpected upload exception occurred.<o:p></o:p></span></p><p class=MsoPlainText><span style='color:#376092'><o:p> </o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:0cm;margin-right:4.5pt;margin-bottom:0cm;margin-left:4.5pt;margin-bottom:.0001pt;line-height:10.5pt'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#222222'>java.lang.NegativeArraySizeException<br>at org.apache.commons.fileupload.disk.DiskFileItem.get(DiskFileItem.java:339)<br>at org.opencms.ade.upload.CmsUploadBean.createResources(CmsUploadBean.java:240)<br>at org.opencms.ade.upload.CmsUploadBean.start(CmsUploadBean.java:186)<br>at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_ade_upload.uploadAction_jsp._jspService(uploadAction_jsp.java:56)<br>at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)<br>at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)<br>at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)<br>at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)<br>at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)<br>at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)<br>at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)<br>at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)<br>at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)<br>at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)<br>at org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:188)<br>at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:163)<br>at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:612)<br>at org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:417)<br>at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:167)<br>at org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:886)<br>at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:517)<br>at org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:1062)<br>at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1598)<br>at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:153)<br>at org.opencms.main.OpenCmsServlet.doPost(OpenCmsServlet.java:166)<br>at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)<br>at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)<br>at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)<br>at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)<br>at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)<br>at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)<br>at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)<br>at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)<br>at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)<br>at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)<br>at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)<br>at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)<br>at java.lang.Thread.run(Thread.java:636)<o:p></o:p></span></p><p class=MsoPlainText>=========================================<o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I could be wrong but I personally believe I have now ruled out the browser as a cause of problem. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>--<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>np<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <a href="mailto:opencms-dev-bounces@opencms.org">opencms-dev-bounces@opencms.org</a> <a href="mailto:[mailto:opencms-dev-bounces@opencms.org]">[mailto:opencms-dev-bounces@opencms.org]</a> <b>On Behalf Of </b>Alberto Gallardo<br><b>Sent:</b> 05 April 2012 12:42<br><b>To:</b> The OpenCms mailing list<br><b>Subject:</b> Re: [opencms-dev] FW: FW: Max File Upload Size.<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>One collegue of mine recently commented something about 2GB upload limit due to browser implementations... You are sure aware of these, but just in case:<br><br><a href="http://help.globalscape.com/help/me3/maximum_file_size_for_browser_based_uploads.htm">http://help.globalscape.com/help/me3/maximum_file_size_for_browser_based_uploads.htm</a><br><a href="http://www.motobit.com/help/scptutl/pa98.htm">http://www.motobit.com/help/scptutl/pa98.htm</a><br><br>Html 5 should solve this problem. I'm not sure if you are not facing this challenge.<br><br>Regards,<br><br>Alberto Gallardo<o:p></o:p></p><div><p class=MsoNormal>2012/4/5 Nick Porter <<a href="mailto:nick.porter@tradar.com">nick.porter@tradar.com</a>><o:p></o:p></p><p class=MsoNormal><br>...and yes, at this point I believe the error is being generated by the Tomcat6 server although I'm no Java dev so I could be wrong here as I have nothing other than OpenCMS to test whether the Tomcat6 server can successfully process a >2GB upload. If I had something basic I could post a file to at least I'd be able to differentiate between the two.<o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p><p class=33994d8e-f74f-46f8-b122-3a7cfb675f81> <o:p></o:p></p><p class=33994d8e-f74f-46f8-b122-3a7cfb675f81>-- <o:p></o:p></p><p class=33994d8e-f74f-46f8-b122-3a7cfb675f81><span style='font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#005288'>Tradar Limited is a limited company registered in England and Wales. Registered number: 3431380. </span><o:p></o:p></p><p class=33994d8e-f74f-46f8-b122-3a7cfb675f81><span style='font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#005288'>Registered office: 20-21 Jockey's Fields, London. WC1R 4BW</span><o:p></o:p></p><p class=33994d8e-f74f-46f8-b122-3a7cfb675f81> <o:p></o:p></p></div></body></html>