Payara icon indicating copy to clipboard operation
Payara copied to clipboard

Bug Report: Some charactors in AJAX request are lost/FISH-10388

Open AkitomoKurushima opened this issue 11 months ago • 1 comments

Brief Summary

Some parts of the string sent from the BackingBean are missing only when making an AJAX request.

It appears that IVS (Ideographic Variation Sequence) characters and similar may be causing the issue.

Examples of missing characters: 𠮷,𠮟,🇯🇵,🇺🇸,🤣️

Expected Outcome

The complete string should be returned during an AJAX request, just as it is when performing a standard GET request.

Current Outcome

A string with missing characters is returned only when making an AJAX request.

In the example shown in the screenshot below, both the top and bottom rows should produce the same characters.

image

Reproducer

Not affected: payara-6.2024.9, payara-6.2024.10 Affected: payara-6.2024.11, payara-6.2024.12

In the following example, the BackingBean method is called from JSF via an AJAX request.

    public String getSampleText() {
        return "𠮷,𠮟,🇯🇵,🇺🇸,🤣️" + new Date();
    }

I have prepared a minimal reproducible sample for this bug and attached it. mavenproject-sample1.zip After running it, clicking the "post ajax" button on the screen reproduces the missing characters.

Operating System

Windows 11 Pro

JDK Version

Amazon Corretto 21.0.5_11

Payara Distribution

Payara Server Full Profile

AkitomoKurushima avatar Jan 07 '25 07:01 AkitomoKurushima

Hello @AkitomoKurushima,

I can confirm that I can see the discrepancy in Payara Community 6.2024.12 but not in 6.2024.10. I have raised an internal issue, codename FISH-10388 for the Platform Development team to solve the bug described in this issue. Thank you so much for providing a clear description and reproducer, and for contributing to the quality of Payara Platform!

Best regards, Felix

felixif avatar Jan 07 '25 17:01 felixif