Skip to content

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

Open
@AkitomoKurushima

Description

@AkitomoKurushima

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

Metadata

Metadata

Assignees

Labels

Status: AcceptedConfirmed defect or accepted improvement to implement, issue has been escalated to Platform DevType: BugLabel issue as a bug defect

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions