Skip to content

Commit 4c8b070

Browse files
committed
OAK-11555 Disable test that depends on platform encoding
1 parent 77af802 commit 4c8b070

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

oak-search-elastic/src/test/java/org/apache/jackrabbit/oak/plugins/index/elastic/util/ElasticIndexUtilsTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,10 @@ public void randomFieldNames() {
6767
@Test
6868
public void idFromPath() {
6969
assertEquals("/content", ElasticIndexUtils.idFromPath("/content"));
70-
assertEquals("%40%0Bz%DF%B4%22%29%EF%BF%BD%EF%BF%BD%3Cfh%EF%BF%BD%27%EF%BF%BD%7E%EF%BF%BDM%EF%BF%BD%EF%BF%BD%EF%BF%BD%22I%EF%BF%BD%7C%EF%BF%BDGn%0A+%25",
71-
URLEncoder.encode(ElasticIndexUtils.idFromPath("/content".repeat(100)),StandardCharsets.UTF_8));
70+
// this test is disabled for now, because in older versions of Java (before Java 18),
71+
// UTF-8 was not the default charset
72+
// assertEquals("%40%0Bz%DF%B4%22%29%EF%BF%BD%EF%BF%BD%3Cfh%EF%BF%BD%27%EF%BF%BD%7E%EF%BF%BDM%EF%BF%BD%EF%BF%BD%EF%BF%BD%22I%EF%BF%BD%7C%EF%BF%BDGn%0A+%25",
73+
// URLEncoder.encode(ElasticIndexUtils.idFromPath("/content".repeat(100)),StandardCharsets.UTF_8));
7274
}
7375

7476
@Test

0 commit comments

Comments
 (0)