Fix failing ITs due to workaround in
@@ -377,9 +377,19 @@ public class BinaryAccessIT extends AbstractBinaryAccessIT {
String contentDisposition = conn.getHeaderField("Content-Disposition");
assertNotNull(contentDisposition);
String encodedName = new String(expectedName.getBytes(StandardCharsets.UTF_8));
+ // This proper behavior is disabled due to
+ // https://github.com/Azure/azure-sdk-for-java/issues/2900
+ // (see also https://issues.apache.org/jira/browse/OAK-8013,
+ // https://issues.apache.org/jira/browse/OAK-8104, and
+ // https://issues.apache.org/jira/browse/OAK-8105). We can re-enable
+ // the full test once the issue is resolved. -MR
+// assertEquals(
+// String.format("inline; filename=\"%s\"; filename*=UTF-8''%s",
+// expectedName, encodedName),
+// contentDisposition
+// );
assertEquals(
- String.format("inline; filename=\"%s\"; filename*=UTF-8''%s",
- expectedName, encodedName),
+ String.format("inline; filename=\"%s\"", expectedName),
contentDisposition
);
@@ -408,9 +418,19 @@ public class BinaryAccessIT extends AbstractBinaryAccessIT {
String contentDisposition = conn.getHeaderField("Content-Disposition");
assertNotNull(contentDisposition);
String encodedName = new String(expectedName.getBytes(StandardCharsets.UTF_8));
+ // This proper behavior is disabled due to
+ // https://github.com/Azure/azure-sdk-for-java/issues/2900
+ // (see also https://issues.apache.org/jira/browse/OAK-8013,
+ // https://issues.apache.org/jira/browse/OAK-8104, and
+ // https://issues.apache.org/jira/browse/OAK-8105). We can re-enable
+ // the full test once the issue is resolved. -MR
+// assertEquals(
+// String.format("attachment; filename=\"%s\"; filename*=UTF-8''%s",
+// expectedName, encodedName),
+// contentDisposition
+// );
assertEquals(
- String.format("attachment; filename=\"%s\"; filename*=UTF-8''%s",
- expectedName, encodedName),
+ String.format("attachment; filename=\"%s\"", expectedName),
contentDisposition
);
@@ -486,9 +506,19 @@ public class BinaryAccessIT extends AbstractBinaryAccessIT {
String contentDisposition = conn.getHeaderField("Content-Disposition");
assertNotNull(contentDisposition);
String encodedName = new String(expectedName.getBytes(StandardCharsets.UTF_8));
+ // This proper behavior is disabled due to
+ // https://github.com/Azure/azure-sdk-for-java/issues/2900
+ // (see also https://issues.apache.org/jira/browse/OAK-8013,
+ // https://issues.apache.org/jira/browse/OAK-8104, and
+ // https://issues.apache.org/jira/browse/OAK-8105). We can re-enable
+ // the full test once the issue is resolved. -MR
+// assertEquals(
+// String.format("attachment; filename=\"%s\"; filename*=UTF-8''%s",
+// expectedName, encodedName),
+// contentDisposition
+// );
assertEquals(
- String.format("attachment; filename=\"%s\"; filename*=UTF-8''%s",
- expectedName, encodedName),
+ String.format("attachment; filename=\"%s\"", expectedName),
contentDisposition
);
