-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
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
transfer get of file with parens and spaces in name gives file not found #1
Comments
michael-conway
modified the milestones:
consortium-compatability 4.0.2,
idrop for jargon 4.0.2 release support - 4.0.2.1
Sep 17, 2014
michael-conway
modified the milestones:
idrop for jargon 4.0.2 release support - 4.0.2.1,
consortium-tls 4.0.2.2
Feb 21, 2015
michael-conway
modified the milestones:
Maintenance release 4.0.2.2 includes iRODS 4.1,
consortium-tls 4.0.2.3,
4.0.2.3 with iRODS 4.1
Apr 21, 2015
michael-conway
modified the milestones:
4.0.2.3 with iRODS 4.1,
Performance enhancements for streams and put/get - 4.0.2.4
May 22, 2015
michael-conway
pushed a commit
that referenced
this issue
Nov 9, 2015
michael-conway
modified the milestones:
Minor changes and compatibility - 4.0.2.4,
mx release post tls 4.1.2
Nov 9, 2015
michael-conway
pushed a commit
that referenced
this issue
Nov 9, 2015
michael-conway
pushed a commit
that referenced
this issue
Nov 19, 2015
test case added, passes.... /**
* test for transfer get of file with parens and spaces in name gives file
* not found #1
*
* @throws Exception
*/
@Test
public final void testGetWithParensBug1() throws Exception {
String testFileName = "testGetWithParensBug1 (1).txt";
String absPath = scratchFileUtils
.createAndReturnAbsoluteScratchPath(IRODS_TEST_SUBDIR_PATH);
String localFileName = FileGenerator
.generateFileOfFixedLengthGivenName(absPath, testFileName, 100);
IRODSAccount irodsAccount = testingPropertiesHelper
.buildIRODSAccountFromTestProperties(testingProperties);
IRODSAccessObjectFactory accessObjectFactory = irodsFileSystem
.getIRODSAccessObjectFactory();
String getFileName = "testGetResult.txt";
String getResultLocalPath = scratchFileUtils
.createAndReturnAbsoluteScratchPath(IRODS_TEST_SUBDIR_PATH + '/')
+ getFileName;
File localFile = new File(getResultLocalPath);
String targetIrodsCollection = testingPropertiesHelper
.buildIRODSCollectionAbsolutePathFromTestProperties(
testingProperties, IRODS_TEST_SUBDIR_PATH);
DataTransferOperations dataTransferOperations = accessObjectFactory
.getDataTransferOperations(irodsAccount);
dataTransferOperations
.putOperation(
localFileName,
targetIrodsCollection,
testingProperties
.getProperty(TestingPropertiesHelper.IRODS_RESOURCE_KEY),
null, null);
DataObjectAOImpl dataObjectAO = (DataObjectAOImpl) accessObjectFactory
.getDataObjectAO(irodsAccount);
IRODSFile irodsFile = dataObjectAO
.instanceIRODSFileForPath(targetIrodsCollection + '/'
+ testFileName);
dataObjectAO.getDataObjectFromIrods(irodsFile, localFile, null, null);
assertionHelper.assertLocalFileExistsInScratch(IRODS_TEST_SUBDIR_PATH
+ '/' + getFileName);
assertionHelper.assertLocalScratchFileLengthEquals(
IRODS_TEST_SUBDIR_PATH + '/' + getFileName, 100);
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
get oper of a file with name like /test/test/thisisaname (1).txt fails with file not found during transfer
Sharan at iPlant
The text was updated successfully, but these errors were encountered: