We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seeing discrepancy in behavior based on whether or not the path has a trailing slash.
@Test public void testGetPermissionForCollectionDoesNotThrowExceptionOnTrailingSlash() throws Exception { String pathWithNoSlash = testingPropertiesHelper .buildIRODSCollectionAbsolutePathFromTestProperties( testingProperties, IRODS_TEST_SUBDIR_PATH); String pathWithTrailingSlash = testingPropertiesHelper .buildIRODSCollectionAbsolutePathFromTestProperties( testingProperties, IRODS_TEST_SUBDIR_PATH + "/"); // now put the file IRODSAccount irodsAccount = testingPropertiesHelper .buildIRODSAccountFromTestProperties(testingProperties); CollectionAO collectionAO = irodsFileSystem .getIRODSAccessObjectFactory().getCollectionAO(irodsAccount); try { collectionAO.getPermissionForCollection(pathWithNoSlash, irodsAccount.getUserName(), irodsAccount.getZone()); } catch (Exception e) { Assert.fail("This should never happen", e); } try { collectionAO.getPermissionForCollection(pathWithTrailingSlash, irodsAccount.getUserName(), irodsAccount.getZone()); } catch (FileNotFoundException e) { Assert.fail("Trailing slash should resolve to parent without throwing FileNotFoundException", e); } catch (Exception e) { Assert.fail("This should never happen", e); } }
The text was updated successfully, but these errors were encountered:
#37 add checks for trailing slashes in collection paths
64d026d
No branches or pull requests
Seeing discrepancy in behavior based on whether or not the path has a trailing slash.
The text was updated successfully, but these errors were encountered: