Skip to content

JQuery Bug 878/1799 within JSONModel.loadData prevents from sending "??" #4064

@andy2018w

Description

@andy2018w

Hi :)

OpenUI5 version: 1.71 (the version which we are using) - current version

Browser/version (+device/version): Chrome 125.0.6422.141 / Windows 10

URL (minimal example if possible): https://jsfiddle.net/4ybLwjd1/

Steps to reproduce the problem:

  1. Open Dev Console - Network Tab
  2. Run the example and click the button

What is the expected result?
POST-Request with following Payload: {"comment":"ui5 bug with following double question mark ??"}

What happens instead?
POST-Request with following Payload: {"comment":"ui5 bug with following double question mark jQuery36009893453989128844_1718181516803"}

Any other information? (attach screenshot if possible)
jquery/api.jquery.com#878
jquery/api.jquery.com#1005
jquery/jquery#1799
jquery/jquery#4754
https://stackoverflow.com/questions/17532018/submitting-jquery-ajax-data-with-string-containing-it-changes-value-to-jq
image

Workaround of jQuery is not possible because the parameter contentType of this._ajax cannot be set from JSONModel.loadData method:
image

Thanks in advance :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions