You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/01/08 07:59:35 UTC
DO NOT REPLY [Bug 25972] New: -
ValueServer switching from URL to File is badly broken
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=25972>.
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=25972
ValueServer switching from URL to File is badly broken
Summary: ValueServer switching from URL to File is badly broken
Product: Commons
Version: 1.0 Alpha
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: Normal
Priority: Other
Component: Math
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: william.barker@wilshire.com
On a Windows machine, where there are spaces in the install path, URL.getFile
returns something like:
/C:/Jakarta%20Development/commons-math/target/test-
classes/org/apache/commons/math/random/testData.txt
ValueServer then tries to construct a File out of this, which is of course an
invalid path.
IMHO it would be better to base the class on InputStream (instead of File),
since in an app-server the concept of File isn't really defined. Otherwise, it
should be based on a URL, and use the openStream method to read the resource.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org