@@ -1241,10 +1241,45 @@ public SeekableByteChannel buildChannel(final String key) throws IOException {
12411241 }
12421242 }
12431243
1244+ @ Test
1245+ public void TestSemicolonInQueryParam () throws IOException , SignatureException , XmlProcessingException {
1246+ final String bucketName = "TestSemicolonInQueryParam" ;
1247+ final String objectName = "Test;Semicolon" ;
1248+ try {
1249+ HELPERS .ensureBucketExists (bucketName , envDataPolicyId );
1250+
1251+ final List <Ds3Object > objs = Lists .newArrayList (new Ds3Object (objectName , 10 ));
1252+
1253+ final Ds3ClientHelpers .Job job = HELPERS .startWriteJob (bucketName , objs );
1254+
1255+ job .transfer (new Ds3ClientHelpers .ObjectChannelBuilder () {
1256+ @ Override
1257+ public SeekableByteChannel buildChannel (final String key ) throws IOException {
1258+
1259+ final byte [] randomData = IOUtils .toByteArray (new RandomDataInputStream (124345 , 10 ));
1260+ final ByteBuffer randomBuffer = ByteBuffer .wrap (randomData );
1261+
1262+ final ByteArraySeekableByteChannel channel = new ByteArraySeekableByteChannel (10 );
1263+ channel .write (randomBuffer );
1264+
1265+ return channel ;
1266+ }
1267+ });
1268+
1269+ final GetObjectsDetailsSpectraS3Response getObjectsSpectraS3Response = client
1270+ .getObjectsDetailsSpectraS3 (new GetObjectsDetailsSpectraS3Request ().withName (objectName ));
1271+
1272+ assertThat (getObjectsSpectraS3Response .getS3ObjectListResult ().getS3Objects ().size (), is (1 ));
1273+
1274+ } finally {
1275+ deleteAllContents (client , bucketName );
1276+ }
1277+ }
1278+
12441279 @ Test
12451280 public void TestSpecialCharacterInObjectName () throws IOException , SignatureException , XmlProcessingException {
12461281 final String bucketName = "TestSpecialCharacterInObjectName" ;
1247- final String objectName = "varsity1314/_projects/VARSITY 13-14/_versions/Varsity 13-14 (2015-10-05 1827)/_project/%Trash ?/PC\uF022 MAC HD.avb" ;
1282+ final String objectName = "varsity1314/_projects/VARSITY 13-14/_versions/Varsity 13-14 (2015-10-05 1827)/_project/%Tra;sh ?/PC\uF022 MAC HD.avb" ;
12481283 try {
12491284 HELPERS .ensureBucketExists (bucketName , envDataPolicyId );
12501285
0 commit comments