tag:blogger.com,1999:blog-19056005.post4362633748903329545..comments2023-08-01T04:33:41.114-07:00Comments on Coldfused?: ColdFusion 8 : Changes with File UploadRupesh Kumarhttp://www.blogger.com/profile/11403172559407967918noreply@blogger.comBlogger39125tag:blogger.com,1999:blog-19056005.post-81758911713333395162012-09-09T12:57:57.257-07:002012-09-09T12:57:57.257-07:00Hi Rupesh,
I've confirmed that "-Dcoldfu...Hi Rupesh,<br /><br />I've confirmed that "-Dcoldfusion.markResetForMultiPart=true" did populate getHTTPRequestData().content w/ binary multipart form data in CF8. However, I've also confirmed that CF9 and CF10 ignore that JVM argument. Thus, this CF7 backward-compat only existed for CF8.<br /><br />Thanks,<br />-AaronAaron Neffhttp://www.itisdesign.comnoreply@blogger.comtag:blogger.com,1999:blog-19056005.post-50619595719415643892009-07-24T18:56:57.489-07:002009-07-24T18:56:57.489-07:00@Rupesh: FYI: you have a problem with SEO Link Spa...@Rupesh: FYI: you have a problem with SEO Link Spamming in this post's comments... (and probably others).<br /><br />You may want to remove the Japanese comments with all the links in them...<br /><br />It's a tricky thing to beat... and it's sad that someone out there is putting that junk on such a wonderfully useful blog post.<br /><br />Keep doing what you do :DUnknownhttps://www.blogger.com/profile/02419194501724270635noreply@blogger.comtag:blogger.com,1999:blog-19056005.post-58176718276807700662008-06-30T14:45:00.000-07:002008-06-30T14:45:00.000-07:00Increasing the file upload size in the machine.con...Increasing the file upload size in the machine.config file is what ultimately fixed this problem for us.<BR/><BR/>It's in the link http://thedotnet.com/nntp/69797/showpost.aspx as listed above.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-19056005.post-34700627016042413442008-05-30T12:59:00.000-07:002008-05-30T12:59:00.000-07:00Rupesh, is there a 2Gb upload limit enforced at th...Rupesh, is there a 2Gb upload limit enforced at the browser level (regardless of whatever bug there is in CF)? Are you saying in the posts above that you are able to upload 5Gb using regular HTTP protocol in Firefox or IE? <BR/><BR/>I've attempted to upload more than 2Gb using other web application servers and still get the same result (Linux 64-bit & Windows 32-bit), so based on this and what I've read on some forums, maybe the 2Gb limit is in the browser? <BR/><BR/>Btw, I am not even getting to cffile. I just want to see a file larger than 2Gb get into CF's tmp directory! And this also has nothing to do with SSL.<BR/><BR/>I tried your suggestion of setting the request limits to 10Gb but it does not help; same 400/500 error occurs (depending on OS). I am very curious now what your local set up is that all this works for you.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-19056005.post-34782005798825985642008-05-30T05:06:00.000-07:002008-05-30T05:06:00.000-07:00Yes. It is indeed a bug - thanks to Chee and other...Yes. It is indeed a bug - thanks to Chee and others for reporting :). We will release a fix for this shortly. I had my setting as 10GB with which everything was working. So for the time being, you can use that as work around till you get the actual fix.Rupesh Kumarhttps://www.blogger.com/profile/11403172559407967918noreply@blogger.comtag:blogger.com,1999:blog-19056005.post-79241171231855798142008-05-29T14:07:00.000-07:002008-05-29T14:07:00.000-07:00There appears to be a problem with the upload limi...There appears to be a problem with the upload limits on a mutli-sever install. I've tried CF8.1 on WinXP/IIS6 (32-bit) and Ubuntu 64-bit running off localhost:8300 and get the same 500 error if any of the request limits are set above 2048. I have enough physical RAM in both cases so I know it's not that. I sumitted this to Jason at Adobe and he said the engineer(s) confirm the problem. I suspect it is just a multi-server JRE issue, but waiting for final confirmation. If anyone knows of a work-around please post it! Btw, my file upload form is plain vanilla (no flash, no ajax).Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-19056005.post-52732478802361189952008-05-01T21:42:00.000-07:002008-05-01T21:42:00.000-07:00Rupesh, thanks for the response. In my ColdFusion ...Rupesh, thanks for the response. In my ColdFusion 8 standard edition, I cannot put any number greater than 2GB in "Maximum size of post data" or else I will receive this error:<BR/><BR/>"error Posted content length of 95585 exceeds limit of -2147483648". <BR/><BR/>So, the maximum value I can put in is only 2047 MB. For the "Request Throttle Memory", if I put in more than 2047 MB, I will receive this error:<BR/><BR/>"javax.servlet.ServletException: ROOT CAUSE: <BR/>coldfusion.util.MemorySemaphore$MemoryUnavailableException: Memory required (925170494 bytes) exceeds the maximum allowed memory."<BR/><BR/>FYI, I have 2GB of physical RAM on the server. Have you seen the above errors before?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-19056005.post-38434295436815317582008-04-30T01:00:00.000-07:002008-04-30T01:00:00.000-07:00Chee,In ColdFusion 8, since file upload will not k...Chee,<BR/>In ColdFusion 8, since file upload will not keep it in the memory, you dont need a higher heap size.<BR/><BR/>Regarding other settings, you can keep all of these to be very high on your server so that file upload does not go through the throttle at all. In my local setting, I had everything to be 20 GB.Rupesh Kumarhttps://www.blogger.com/profile/11403172559407967918noreply@blogger.comtag:blogger.com,1999:blog-19056005.post-25209465591217286772008-04-30T00:51:00.000-07:002008-04-30T00:51:00.000-07:00Thanks a lot everyone specially John H., Kim and B...Thanks a lot everyone specially John H., Kim and Brian for finding out a solution for this crazy IIS problem.Rupesh Kumarhttps://www.blogger.com/profile/11403172559407967918noreply@blogger.comtag:blogger.com,1999:blog-19056005.post-79241304829972952582008-04-27T21:35:00.000-07:002008-04-27T21:35:00.000-07:00Hi Rupesh,When you mentioned uploaded 5GB file thr...Hi Rupesh,<BR/><BR/>When you mentioned uploaded 5GB file through ColdFusion 8, may I know what is the setting you used for "Maximum size of post data" and "Request Throttle Memory"? What is your total physical memory size in your machine? <BR/><BR/>Thanks!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-19056005.post-89636761304054082312008-04-25T06:05:00.000-07:002008-04-25T06:05:00.000-07:00We had the same upload problems with IIS 6 and Cf8...We had the same upload problems with IIS 6 and Cf8.01 until this fix that my project lead implemented based on the posts above. <BR/><BR/>The SSLAlwaysNegoClientCert="TRUE" had to be set in a file called MetaBase.xml found in the directory C:\WINDOWS\system32\inetsrv<BR/> <BR/>In order to modify this file you have to shutdown the IIS services and web sites.<BR/><BR/>Then modify the file by adding the SSLAlwaysNegoClientCert="TRUE" statement to the xml file in the section IIsWebService.<BR/><BR/>There was another SSL statement there already so he put it above that statement as he thought it needed to be in order.<BR/> <BR/>Once the modifications were complete, then he restarted the services and web sites.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-19056005.post-51178762628315040382008-04-23T12:07:00.000-07:002008-04-23T12:07:00.000-07:00Kim,Could you point us to the syntax of making tha...Kim,<BR/><BR/>Could you point us to the syntax of making that change using Adsutil? We'd like to give that a try.<BR/><BR/>Thanks for your post!<BR/><BR/>John H.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-19056005.post-65541691410084427342008-04-11T04:17:00.000-07:002008-04-11T04:17:00.000-07:00Good post... Thanks.Good post... Thanks.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-19056005.post-65572998519209619012008-04-03T10:13:00.000-07:002008-04-03T10:13:00.000-07:00We worked with Microsoft to solve this problem. To...We worked with Microsoft to solve this problem. To summarize what we did to get this issue resolved....<BR/>We set SSLALwaysNegoClientCert property to true. We had to do this with the adsutil not metabase explorer. The readaheadsize needs to stay as the default values. We have not had any upload problems for a couple weeks and we have uploaded files as large as 100mg.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-19056005.post-81275795876192904522008-03-28T09:45:00.000-07:002008-03-28T09:45:00.000-07:00Unfortunately, we're experiencing the same problem...Unfortunately, we're experiencing the same problem on our server running CF8, MS Server 2003 R2, IIS6, and SSL. I've made both metabase changes and restarted IIS as well as the server with no luck.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-19056005.post-35728612004092678292008-03-03T03:14:00.000-08:002008-03-03T03:14:00.000-08:00Thanks for making this blog post. It's saved me l...Thanks for making this blog post. It's saved me looking in the wrong place for something. I've been trying to hunt down where ColdFusion holds the original name of a file upload, before the CFFile action="upload" tag is used. Tried the getHttpRequestData().content but of course it's empty on CF8 now plus I didn't really want to split the data apart for the name.<BR/><BR/>I'll keep hunting ;)<BR/>ThanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-19056005.post-80695981982263073892008-01-24T07:54:00.000-08:002008-01-24T07:54:00.000-08:00Re: Blank/White Page IssueThe problem continues ev...Re: Blank/White Page Issue<BR/><BR/>The problem continues even after a reboot and no known configuration changes. We're back to missing more than we're hitting, unfortunately. Does anyone have any other suggestions for us to try?<BR/><BR/>We're mystified!<BR/><BR/>John H.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-19056005.post-27337515636042693792008-01-21T08:55:00.000-08:002008-01-21T08:55:00.000-08:00Re: Blank/White Page IssueIt came back again this...Re: Blank/White Page Issue<BR/><BR/>It came back again this morning after a few weeks of error-free uploads. Once the issue arose, we tested documents of 49k, 52k, and 101k and all failed. We've scheduled a reboot of the affected server for this evening and will retest again tomorrow (Tues.). I'll let you know if that makes any difference.<BR/><BR/>John H.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-19056005.post-46706000140572696082008-01-09T06:40:00.000-08:002008-01-09T06:40:00.000-08:00Hi, Rupesh,Sorry for the long delay... Between the...Hi, Rupesh,<BR/><BR/>Sorry for the long delay... Between the holidays and fires that needed to be put out, I haven't had an opportunity to post a reply.<BR/><BR/>1. Blank Page Issue: Though we'd tried the UploadReadAheadSize setting in the IIS metadata in the past, we'd never tried it in conjunction with the SSLAlwaysNegoClientCert property. That combination seems to work though there still have been one or two instances of blank pages. (We're not sure that they weren't caused by something else.) I wouldn't say we've fixed it 100% until further testing, but at the moment we've gone from about 15% success rate to something closer to 98%. We'll know in the coming weeks if those are, indeed, the fixes, but it's looking good so far.<BR/><BR/>2. JRun SSL Issue: The reason we need to enable SSL for ColdFusion is that our CF server makes machine-to-machine connections to a WebLogic machine and we need two way SSL (per security regs) to insure the integrity of the communidations. (The WebLogic server is ours now, but could be a "foreign" machine in the future.) We are using the built in version of JRun, and that is configured with the .ini file, as opposed to using the stand-alone JRun that has a GUI as I understand it, that simply lets you check a box to enable SSL. At any rate, we've tried all matter of configurations and either it (JRun) wouldn't start after enabling it, or would start but throw thousands of errors. We've given up for the time being, but it will be mandatory to have the two-way SSL handshake between the WebLogic and CF serves before it will ever go live in production. One subcontrator who was here working on the WebLogic end of things commented that the version of JRun/Java can't handle two-way SSL, only one-way. So, it's never been as simple as "just enabling" it for us. What I'd love is to have the .INI file of someone who's got two-way SSL working that I could use as a template when trying to sort out exactly which directory/file/etc. that needs to be configured in the .ini.<BR/><BR/>I'll keep you posted about our testing with the blank page issue and we'll keep looking (and hoping) a solution can be found for two-way SSL between ColdFusion and WebLogic.<BR/><BR/>Thanks again for your help!<BR/><BR/>John H.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-19056005.post-52965149790937444112007-12-20T00:13:00.000-08:002007-12-20T00:13:00.000-08:00Hi John,Thats a great news! It will be great if yo...Hi John,<BR/>Thats a great news! It will be great if you could share which exact configuration setting helped?<BR/><BR/>Regarding ssl configuration, which communication do you want on ssl - between client and web server or between webserver and JRun or both? The doc just says that since jrun is any way not exposed to external world and only webserver is, you would typically not configure SSL on jrun and hence would keep ssl flag as false in jrun.ini. If you want the communication between IIS and jrun over SSL, you can enable SSL without any problem.<BR/><BR/>Thanks & Regards,<BR/>Rupesh.<BR/>RupeshRupesh Kumarhttps://www.blogger.com/profile/11403172559407967918noreply@blogger.comtag:blogger.com,1999:blog-19056005.post-88096557464506872282007-12-19T09:04:00.000-08:002007-12-19T09:04:00.000-08:00We seem to have had some success. We configured t...We seem to have had some success. We configured those settings in our test environment with CF8 and so far uploads have been successful with no blank pages. Our production servers running CF7 still have the problem, as one might expect.<BR/><BR/>The Production servers will be upgraded to CF8 on Monday and will be tested by our developers Wed/Thurs of next week. I'll report back on their findings on the 31st. (I'll do a couple of tests myself, but they'll have the final word as to whether we're successful or not.)<BR/><BR/>On an unrelated note--we need to enable SSL on JRun, but the Admin guide for CF8 says it must be set to "false" in JRun.ini. Is there a workaround to this or is that the final word?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-19056005.post-33011983370667106662007-12-18T11:58:00.000-08:002007-12-18T11:58:00.000-08:00We still haven't found a workaround. We tried all...We still haven't found a workaround. We tried all those IIS changes before and we still get the error when SSL is enabled. We are mandated to use SSL and PKI certificates. We can't go back to IIS5/CF5 because it is not supported by our customer.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-19056005.post-6866247214295627642007-12-11T10:49:00.000-08:002007-12-11T10:49:00.000-08:00Hi John,Yes, we were able to replicate this. But t...Hi John,<BR/>Yes, we were able to replicate this. But the interesting thing is that - when we debugged, we found out that request in this case does not even come to ColdFusion. The culprit here is IIS. It sends a blank page or 413 response very often in case of upload over SSL. And it looks like lot of people are facing problem with IIS6 + SSL.<BR/>Some links <BR/>http://www.issociate.de/board/goto/617935/IIS6.0_+_SSL_Breaks_down!.html<BR/>http://www.thescripts.com/forum/thread317125.html<BR/>http://www.elp.co.at/IIS+Issues_1199.html<BR/>http://www.experts-exchange.com/Software/Server_Software/Web_Servers/Microsoft_IIS/Q_20637561.html<BR/>http://thedotnet.com/nntp/69797/showpost.aspx<BR/><BR/>Let me know if any of these links help.Rupesh Kumarhttps://www.blogger.com/profile/11403172559407967918noreply@blogger.comtag:blogger.com,1999:blog-19056005.post-76607197380845310602007-12-07T07:45:00.000-08:002007-12-07T07:45:00.000-08:00Hi, Rupesh,Any luck replicating SSL/Blank Page iss...Hi, Rupesh,<BR/><BR/>Any luck replicating SSL/Blank Page issue? We're eager to move to CF 8 on Windows 2003. <BR/><BR/>Thanks!<BR/><BR/>John H.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-19056005.post-19706974674662969012007-11-20T06:29:00.000-08:002007-11-20T06:29:00.000-08:00wow.. Looks likes lot of people are facing this. B...wow.. Looks likes lot of people are facing this. But on the face of it, doesn't it look like Windows 2003/IIS problem. If it works on Windows 2000/IIS, it should work on 2003 as well because ColdFusion is running on Java. And as Kim said, he sees the same behaviour with ASP also. So the bug should be more likely on 2003/IIS.<BR/>Anyways, we are trying to replicate it at our end here and see what exactly is going on. Will update you guys with our findings.Rupesh Kumarhttps://www.blogger.com/profile/11403172559407967918noreply@blogger.com