Mark, Great news ! I think i'll check that one out and update our servers. Thanks
Kind regards David Cassidy "Mark Thomas" <[EMAIL PROTECTED] To: "'Tomcat Developers List'" <[EMAIL PROTECTED]> > cc: Subject: RE: Tomcat 4.1.30 (although its still there in tomcat 5.0.28) temp file issue. 14/09/2004 21:19 Please respond to "Tomcat Developers List" This is already in bugzilla as http://nagoya.apache.org/bugzilla/show_bug.cgi?id=29570 This was fixed in CVS for TC4 and TC5 2 days ago and should be included in the next release. Mark > -----Original Message----- > From: David Cassidy [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 14, 2004 3:52 PM > To: Tomcat Developers List > Subject: Tomcat 4.1.30 (although its still there in tomcat > 5.0.28) temp file issue. > > > Guys, > > We run an internal mass web hosting platform for our clients. > In order to protect them as much as poss we make their areas > read only. > We set the normal java.io.tmpdir to be a writeable area. > > We've hit an issue at the moment where sometimes under > certain conditions the > DefaultCompilerAdapter gets called. This seems to think that > as getJavac().getTempdir() > has returned null (if anyone knows how to get the tempdir set > please let me know) > it should write its temp file in the users home dir. > The users home dir is read only. > > How do i set what ever it needs to write the temp file in the > right place ? > I've set the scrachdir for org.apache.jasper.servlet.JspServlet > but still to no avail. > Or failing that could not > > > protected int executeExternalCompile(String args[], int > firstFileName, boolean quoteFiles) > { > String commandArray[]; > File tmpFile; > commandArray = null; > tmpFile = null; > if(Commandline.toString(args).length() > 4096 && > firstFileName >= 0) > { > PrintWriter out = null; > try > { > File userDir = getJavac().getTempdir(); > if(userDir == null) > { > String userDirName = > System.getProperty("user.dir"); > userDir = new File(userDirName); > } > tmpFile = fileUtils.createTempFile("files", > "", userDir); > tmpFile.deleteOnExit(); > > > be written as > > protected int executeExternalCompile(String args[], int > firstFileName, boolean quoteFiles) > { > String commandArray[]; > File tmpFile; > commandArray = null; > tmpFile = null; > if(Commandline.toString(args).length() > 4096 && > firstFileName >= 0) > { > PrintWriter out = null; > try > { > tmpFile = java.io.File.createTempFile( "files", ""); > tmpFile.deleteOnExit(); > > Thanks > david > > > -- > > This e-mail may contain confidential and/or privileged > information. If you are not the intended recipient (or have > received this e-mail in error) please notify the sender > immediately and destroy this e-mail. Any unauthorized > copying, disclosure or distribution of the material in this > e-mail is strictly forbidden. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]