Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.2, 1.3
-
None
Description
Here's a unit test to show how the escape/unescape cycle doesn't return expected String.
@Test public void testUnscape() { String unscapeString = "double quote: \" and a forward slash: /"; String escapeString = StringEscapeUtils.escapeJson(unscapeString); assertEquals("double quote: \" and a forward slash: \/", escapeString); assertEquals(unscapeString, StringEscapeUtils.unescapeJson(escapeString)); }
Attachments
Issue Links
- is caused by
-
TEXT-100 StringEscapeUtils#UnEscapeJson doesn't recognize escape signs correctly
- Closed
- is related to
-
SPARK-28549 Use `text.StringEscapeUtils` instead `lang3.StringEscapeUtils`
- Resolved