You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by Andrew Phillips <no...@github.com> on 2017/11/29 01:51:49 UTC
[jclouds/jclouds] Fix an unexpected test failure in Windows path
handling (#1162)
See http://markmail.org/message/tahusme6svuhpew6.
From a quick local test, it seems that this test has been failing on Windows since it was added in 6452960c72a5f8, so I'm not sure if the test input was incorrectly constructed at the time, or if the actual functionality has been broken on Windows from the beginning.
@gaul Any light you could shed on that?
You can view, comment on, or merge this pull request online at:
https://github.com/jclouds/jclouds/pull/1162
-- Commit Summary --
* Fix an unexpected test failure in Windows path handling
-- File Changes --
M apis/filesystem/src/test/java/org/jclouds/filesystem/strategy/internal/FilesystemStorageStrategyImplTest.java (16)
-- Patch Links --
https://github.com/jclouds/jclouds/pull/1162.patch
https://github.com/jclouds/jclouds/pull/1162.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1162
Re: [jclouds/jclouds] Fix an unexpected test failure in Windows path
handling (#1162)
Posted by Andrew Phillips <no...@github.com>.
demobox commented on this pull request.
> String invalidPathBlobKey = "A<!:!@#$%^&*?]8 /\0";
+ // the JDK can't handle '/' in Windows file paths
Aaaaah...so what seems to be happening here is that removing `\` means that `parentPath` [here](https://github.com/jclouds/jclouds/blob/master/apis/filesystem/src/main/java/org/jclouds/filesystem/strategy/internal/FilesystemStorageStrategyImpl.java#L846) is then empty, so the code that throws the error (`directory.toPath()`, a few lines down) is never actually called.
@gaul Do you recall what the intention is here? Is `invalidPathBlobKey` supposed to represent a blob key **without** path information, or is it supposed to represent a path, too?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1162#discussion_r210170364
Re: [jclouds/jclouds] Fix an unexpected test failure in Windows path
handling (#1162)
Posted by Andrew Gaul <no...@github.com>.
Please reopen against apache/jclouds if this is still relevant.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1162#issuecomment-663855747
Re: [jclouds/jclouds] Fix an unexpected test failure in Windows path
handling (#1162)
Posted by Andrew Gaul <no...@github.com>.
gaul commented on this pull request.
> String invalidPathBlobKey = "A<!:!@#$%^&*?]8 /\0";
+ // the JDK can't handle '/' in Windows file paths
`FilesystemStorageStrategyImpl.normalize` should handle this translation. I wonder why it does not?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1162#pullrequestreview-80685315
Re: [jclouds/jclouds] Fix an unexpected test failure in Windows path
handling (#1162)
Posted by Andrew Gaul <no...@github.com>.
Closed #1162.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1162#event-3586273602