There are two problems here, so become complex. 1) crash on parsing "//", which included in file path, on linux. This is fixed in UnixFileSystem.java in resolve function. 2) user.dir should be read only. This is fixed in both UnixFileSystem.java and WinNTFileSystem.java.
The test case covers two of them. Should we handle them in two separate bugs? Yumin On Thu, Feb 15, 2018 at 10:00 AM, yumin qi <[email protected]> wrote: > OK, let's work on a suitable test case. > > Thanks > Yumin > > On Thu, Feb 15, 2018 at 9:41 AM, Alan Bateman <[email protected]> > wrote: > >> On 15/02/2018 17:25, yumin qi wrote: >> >>> Alan, >>> >>> The real reason is if we do not change on resolve, the string passed >>> into native canonicalize will be like "//./a/" which is not expected in >>> native part. In native part, we resume that no more "//" in the path string >>> (already normalized in java). >>> >>> If that is the case then the test doesn't match the issue we have been >> discussing on this thread. Would it be possible to create a test case for >> the issue that you are actually trying to address? >> >> -Alan >> > >
