Remy Maucherat wrote:
>
> Quoting [EMAIL PROTECTED]:
>
> > glenn 01/06/22 13:20:54
> >
> > Modified: catalina/src/share/org/apache/naming/resources
> > FileDirContext.java
> > Log:
> > Fix path for windows file separator
> > @@ -843,6 +842,8 @@
> > * @param name Normalized context-relative path (with leading
> > '/')
> > */
> > protected File file(String name) {
> > + if( File.separatorChar == '\\' )
> > + name = name.replace('/',File.separatorChar);
> >
> > File file = new File(base, name);
> > if (file.exists() && file.canRead()) {
>
> Is this really needed ?
> I think this should be abstracted by the new File call.
>
Yes, it was needed. There were a few cases under windows when the
file separator was incorrect, causing FileDirContext to fail.
As long as we make sure the file separator is correct, you can
abstract it out any way you think works best.
Regards,
Glenn
----------------------------------------------------------------------
Glenn Nielsen [EMAIL PROTECTED] | /* Spelin donut madder |
MOREnet System Programming | * if iz ina coment. |
Missouri Research and Education Network | */ |
----------------------------------------------------------------------