[
https://issues.apache.org/jira/browse/GEODE-9526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated GEODE-9526:
----------------------------------
Labels: pull-request-available (was: )
> DiskStore test incorrectly treats absolute path as relative on Windows
> ----------------------------------------------------------------------
>
> Key: GEODE-9526
> URL: https://issues.apache.org/jira/browse/GEODE-9526
> Project: Geode
> Issue Type: Test
> Components: tests
> Reporter: Dale Emery
> Priority: Major
> Labels: pull-request-available
>
> On Windows, an absolute file path can begin with a letter (e.g. "C:\…").
> {{DiskStoreCommandsDUnitTest.verifyDiskStoreInServer(...)}} incorrectly
> assumes that, because such a path does not start with a file separator, it
> must be relative. It then attempts to convert it to an absolute path by
> prepending the current directory onto it:
> {noformat}
> String absoluteDiskDirectoryName =
> diskDirectoryName.startsWith(File.separator)
> ? diskDirectoryName
> : CURRENT_DIRECTORY + File.separator + diskDirectoryName;
> {noformat}
> On Windows, the resulting file path is unusable.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)