DO NOT REPLY [Bug 13983] - RMI call from Web Application throws SocketException if CATALINA_HOME has a space in it
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=13983. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=13983 --- Additional Comments From [EMAIL PROTECTED] 2005-08-24 22:47 --- If you can see a way that fixes this issue (or better yet have a patch) without breaking anything else please let us know what is. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 13983] - RMI call from Web Application throws SocketException if CATALINA_HOME has a space in it
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=13983. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=13983 [EMAIL PROTECTED] changed: What|Removed |Added CC||[EMAIL PROTECTED] --- Additional Comments From [EMAIL PROTECTED] 2005-08-23 22:54 --- *** Bug 36316 has been marked as a duplicate of this bug. *** -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 13983] - RMI call from Web Application throws SocketException if CATALINA_HOME has a space in it
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=13983. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=13983 --- Additional Comments From [EMAIL PROTECTED] 2005-08-23 23:24 --- (In reply to comment #10) Well, my fix is to disallow installation of Tomcat into a directory path containing spaces -- for our distribution of Tomcat. RMI is pretty silly in this regard -- to the point that we've taken using the RMIClassLoaderSpi to get it not to send all these URLs on every call, as we don't allow any server loading of client classes anyway. I've not checked but this RMIClassLoaderSpi change may well fix this issue -- as I believe that's what caused the issue. At this point, though, I'm leaving well enough alone -- spaces in paths are bad news and are best disallowed. One could never get away with this in a client installation, but even on Windows server administrators should understand this much! Unfortunately, I'm dealing with a user installation scenario and they can install where ever they like. Tomcat's own Windows installer puts it in C:\Program Files\Apache Software Foundation\Tomcat 5.5 by default. So, my problem still stands, as does my wonderment that this has not been addressed. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 13983] - RMI call from Web Application throws SocketException if CATALINA_HOME has a space in it
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=13983. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=13983 [EMAIL PROTECTED] changed: What|Removed |Added OS/Version||All --- Additional Comments From [EMAIL PROTECTED] 2005-02-14 15:18 --- This seems like a pretty big issue to me. As far as I can tell, it is currently impossible to write a webapp using RMI a 1.4.2 VM (haven't tied 1.5.0, but that isn't currently an option). Why hasn't this received more attention? -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 13983] - RMI call from Web Application throws SocketException if CATALINA_HOME has a space in it
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=13983. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=13983 --- Additional Comments From [EMAIL PROTECTED] 2005-02-14 15:24 --- Well, my fix is to disallow installation of Tomcat into a directory path containing spaces -- for our distribution of Tomcat. RMI is pretty silly in this regard -- to the point that we've taken using the RMIClassLoaderSpi to get it not to send all these URLs on every call, as we don't allow any server loading of client classes anyway. I've not checked but this RMIClassLoaderSpi change may well fix this issue -- as I believe that's what caused the issue. At this point, though, I'm leaving well enough alone -- spaces in paths are bad news and are best disallowed. One could never get away with this in a client installation, but even on Windows server administrators should understand this much! -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 13983] - RMI call from Web Application throws SocketException if CATALINA_HOME has a space in it
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=13983. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=13983 RMI call from Web Application throws SocketException if CATALINA_HOME has a space in it --- Additional Comments From [EMAIL PROTECTED] 2004-07-27 17:36 --- My proposed fix caused other issues -- at least in Tomcat 5.0.27, namely bug 30349 (which I closed as invalid once I realized it was not reproducible with an unpatched Tomcat). Essentially my fix made it impossible to compile JSP pages from directories containing spaces, which otherwise worked fine. [I do not believe this issue occured in Tomcat 4.1.24 with my proposed fix.] Those who distrusted this fix were thus justified, as it broke page compilation for paths including space where the prior situation was that only RMI was broken (and only due to issues with Sun's silly RMI implementation involving a space-delimited URL list). I tried several other tacks to the fix, but the issues appears to be that Tomcat 5's JSP compiler requires that spaces be *unescaped* and RMI requires that they be *escaped* -- and they're both apparently using the same API, getURLs(). Back to the drawing board... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 13983] - RMI call from Web Application throws SocketException if CATALINA_HOME has a space in it
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=13983. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=13983 RMI call from Web Application throws SocketException if CATALINA_HOME has a space in it --- Additional Comments From [EMAIL PROTECTED] 2004-07-20 17:29 --- Just a note: Even though Tomcat 5.0.x's WebappClassLoader has a nice getURI() method, it does not use it to from its getURLs() method. This means the bug still exists in Tomcat 5.0.x. The Tomcat team seems loathe to rock the boat to address this, which is *somewhat* understandable. At this point I only care about use case this working in Java 2 v1.4 and higher and about not destroying any other functionality under Java 2 v1.3.x via a fix (e.g. by using a 1.4-specific class directly). For these constraints the fix in Tomcat 5.0.27 can be as simple as: protected URL getURL(File file) throws MalformedURLException { return jdkCompat.getURI(file); // same implementation as getURI() } or one could just call getURI(), but I chose to limit calls to getURI() to those explicitly looking for a URI rather than a well-formed URL. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 13983] - RMI call from Web Application throws SocketException if CATALINA_HOME has a space in it
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13983. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13983 RMI call from Web Application throws SocketException if CATALINA_HOME has a space in it --- Additional Comments From [EMAIL PROTECTED] 2004-02-11 18:19 --- I was able to fix this problem by changing the getURL method in the Webappclassloader. Also, i've only tested this with 4.1.29 so, even though i think this will work with other versions, its not been tested with those. Here is the new getURL method protected URL getURL(File file) throws MalformedURLException { File realFile = file; try { realFile = realFile.getCanonicalFile(); } catch (IOException e) { // Ignore } String fileStr = file: + realFile.getPath(); StringBuffer sb = new StringBuffer(fileStr.length()); for(int i=0; i fileStr.length();i++) { char c = fileStr.charAt(i); if(c != ' ') { sb.append(c); } else { sb.append(%20); } } return new URL(sb.toString()); } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 13983] - RMI call from Web Application throws SocketException if CATALINA_HOME has a space in it
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13983. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13983 RMI call from Web Application throws SocketException if CATALINA_HOME has a space in it [EMAIL PROTECTED] changed: What|Removed |Added CC||[EMAIL PROTECTED] --- Additional Comments From [EMAIL PROTECTED] 2003-10-09 18:45 --- *** Bug 23112 has been marked as a duplicate of this bug. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 13983] - RMI call from Web Application throws SocketException if CATALINA_HOME has a space in it
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13983. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13983 RMI call from Web Application throws SocketException if CATALINA_HOME has a space in it --- Additional Comments From [EMAIL PROTECTED] 2003-10-09 18:55 --- See bug 23112 for a description of a fix that works in Java 1.3 and 1.4. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 13983] - RMI call from Web Application throws SocketException if CATALINA_HOME has a space in it
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13983. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13983 RMI call from Web Application throws SocketException if CATALINA_HOME has a space in it --- Additional Comments From [EMAIL PROTECTED] 2002-11-14 12:44 --- See Sun's bug 4273532 (http://developer.java.sun.com/developer/bugParade/bugs/4273532.html). Apparently, the WebappClassLoader is doing nothing wrong when in the getURL method it calls realFile.toURL(). Sun's File.toURL is to blame. Sun's suggested workaround fixes the problem: return realFile.toURI().toURL(); -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org
DO NOT REPLY [Bug 13983] - RMI call from Web Application throws SocketException if CATALINA_HOME has a space in it
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13983. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13983 RMI call from Web Application throws SocketException if CATALINA_HOME has a space in it [EMAIL PROTECTED] changed: What|Removed |Added CC||[EMAIL PROTECTED] --- Additional Comments From [EMAIL PROTECTED] 2002-11-14 12:46 --- *** Bug 10871 has been marked as a duplicate of this bug. *** -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org
DO NOT REPLY [Bug 13983] - RMI call from Web Application throws SocketException if CATALINA_HOME has a space in it
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13983. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13983 RMI call from Web Application throws SocketException if CATALINA_HOME has a space in it --- Additional Comments From [EMAIL PROTECTED] 2002-11-14 12:56 --- Thanks for the additional details. I had added realFile.toURI().toURL() already in the Tomcat 5 dev code, but it has the following problems: - works only with JDK 1.4 :-( - causes problems with codebase definitions used by the security manager (which are not URL encoded); for that reason, the encoded URLs are only returned for getResource calls. I think this change will be reverted (we need to work with JDK 1.3), and another fix will be needed. -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org