Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jersey-dev] Facing Bad Request 400 error for certain Chinese characters while calling Jersey webservice on Weblogic server
  • From: "jayant.nahar@xxxxxxxxxxx" <jayant.nahar@xxxxxxxxxxx>
  • Date: Wed, 7 Jun 2023 13:35:02 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siemens.com; dmarc=pass action=none header.from=siemens.com; dkim=pass header.d=siemens.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=yYEmBqXdWRg1FbaFRSpABLecA0MHgwleQwd81aJ7yfI=; b=AuBafyfToAI17HBpsHGh7C0I+Q22hqpuVCoH0QDY8R20UdbSZAFiP5ndez+nqA8oZE2cPOtdi9s2vM+H36ONIXUrCFNqQeJ1Xq1WSPGizuBACGJTz6O7lroWXNRz/M8vIMVHk91Gp61ZgYogYgLCSg7Iy4+WGnzteQaWBDC0dbsc7qAkNg21wI8zMl/c3MIzchrxqDL4ey4gu+UDFr/sfcicPgZjm1BOeG+dtUBPvvtD09ix3pAccgrNvit89PMrKoq8YbJri6+JPpUtv/cP24iIYF+4lim7lPZfSpf9vfRRx/vABuF2zkgdf96LGYMB/mJIGA28M6Z6SImfVbIh1A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nG0TQYjpZ6zPhR4qzS2Z9ozoWu9QYxULqBmwO6tyuhKtwRxAAQ0IKEAlwiXdZWA7Dj+M8CVb9tzgkLfEpJhJHiPqe5MLsRVmt70bPASJG9n9G2XlqK02ZvY2o5T2QsIXNn0wWu+ri7N9CEbOhQRMVFb/oSBg/s7AqBJsK8kOlOiLhYthWVET3/xhLzowXzZ5nGfvumyObbKpkdOq/trg/+gmkuSBnVtmvk+MRNXSmGLXIGdx100xLLg2fPJ3shHC0vrgXcZ99ILl7nVcPmdl046Od/UocefoCezCiXLTFrccjAxFMb4ufEAYokN9YoajAjop+9NfR9jX+rAoeKHU/Q==
  • Delivered-to: jersey-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/jersey-dev/>
  • List-help: <mailto:jersey-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/jersey-dev>, <mailto:jersey-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/jersey-dev>, <mailto:jersey-dev-request@eclipse.org?subject=unsubscribe>
  • Msip_labels: MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_ActionId=7e941935-6c9c-4e3e-bc09-bcf09580cfe8; MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_ContentBits=0; MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_Enabled=true; MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_Method=Standard; MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_Name=restricted; MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_SetDate=2023-06-06T12:55:53Z; MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_SiteId=38ae3bcd-9579-4fd4-adda-b42e1495d55a;
  • Thread-index: AdmYefIyQleZqEVUTWaVZ9dRnuSSVQAAXuhaAC+AFXAAAsqWcA==
  • Thread-topic: Facing Bad Request 400 error for certain Chinese characters while calling Jersey webservice on Weblogic server

Maxim,

FYI

Raised issue on issue tracker as suggested https://github.com/eclipse-ee4j/jersey/issues/5343

 

Thanks,

Jayant

 

From: Nahar, Jayant (DI SW LCS APPS INDAPPS TCXAPP2)
Sent: 07 June 2023 17:52
To: Maxim Nesen <maxim.nesen@xxxxxxxxxx>; jersey-dev@xxxxxxxxxxx
Cc: Panjwani, Chandar (DI SW LCS APPS INDAPPS TCXAPP1) <chandar.panjwani@xxxxxxxxxxx>
Subject: RE: Facing Bad Request 400 error for certain Chinese characters while calling Jersey webservice on Weblogic server

 

Maxim,
For simple post method it’s working for me as well. But we have some what complex structure of payload where we extract this string from the payload.

I have created a sample project which didn’t reproduce actual issue of getting 400 Bad request but to the level which causes this Bad request (Chinese string corrupted somewhere).

As per below, I’ll file an issue on below issue tracker.

 

Thanks,

Jayant

 

From: Maxim Nesen <maxim.nesen@xxxxxxxxxx>
Sent: 06 June 2023 19:07
To: jersey-dev@xxxxxxxxxxx
Cc: Nahar, Jayant (DI SW LCS APPS INDAPPS TCXAPP2) <jayant.nahar@xxxxxxxxxxx>; Panjwani, Chandar (DI SW LCS APPS INDAPPS TCXAPP1) <chandar.panjwani@xxxxxxxxxxx>
Subject: Re: Facing Bad Request 400 error for certain Chinese characters while calling Jersey webservice on Weblogic server

 

Hello Jayant,

 

having simple post method like

 

@POST

    @Path("post")

    public String utfPost(String input) {

        return input;

    }

 

and calling it using curl:

 

the output is 提交应标

 

so please provide some reproducer and could you please file an issue to the https://github.com/eclipse-ee4j/jersey/issues issue tracker in order to track the issue properly?

 

Thanks and regards,

Maxim

 


Od: jersey-dev <jersey-dev-bounces@xxxxxxxxxxx> za uživatele jayant.nahar--- via jersey-dev <jersey-dev@xxxxxxxxxxx>
Odesláno: úterý 6. června 2023 15:24
Komu: jersey-dev@xxxxxxxxxxx <jersey-dev@xxxxxxxxxxx>
Kopie: jayant.nahar@xxxxxxxxxxx <jayant.nahar@xxxxxxxxxxx>; Panjwani, Chandar <chandar.panjwani@xxxxxxxxxxx>
Předmět: [External] : [jersey-dev] Facing Bad Request 400 error for certain Chinese characters while calling Jersey webservice on Weblogic server

 

Hi Team,

 

There’s a weird issue observed with our application (probably a generic issue) when we enter certain Chinese characters and send a request to a Jersey based web-service.

 

It fails with Bad request 400 error. The application is deployed on a weblogic server.

 

Input Chinese char : 提交应标

Response Status: 400 Bad request

Response : Invalid UTF-8 middle byte 0x3f

                             at [Source: (org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream); line: 1, column: 442] (through reference chain: com.mypackage.MyClass["chineseCharKey"])

 

Can someone please have a look with these inputs and help resolve the issue? Struggling from quite some time. Any help would really help.

 

Thank you,

Jayant


Back to the top