Azure / azure-iot-sdk-c

A C99 SDK for connecting devices to Microsoft Azure IoT services
https://azure.github.io/azure-iot-sdk-c
Other
587 stars 739 forks source link

File-upload to blob fails on setting destination file name in Japanese character in Japanese OS #2636

Open ykgw-moorthy opened 1 month ago

ykgw-moorthy commented 1 month ago

Desktop, Windows server 2022 Japanese(ja_JP), MSVC compiler)

SDK Version

LTS_07_2022_Ref02

Protocol

HTTP

Describe the Bug

File upload to blob storage is failing on specifying the Japanese string as destinationFileName in IoTHubDeviceClient_LL_UploadMultipleBlocksToBlob API in the Japanese OS. Same implementation is working fine with normal English characters as destinationFileName.

Error log i have attached. below.

It can be reproduced by specifying the azureStorageBlobPath as any Japanese string in the following sample (https://github.com/Azure/azure-iot-sdk-c/blob/main/iothub_client/samples/iothub_client_sample_upload_to_blob_mb/iothub_client_sample_upload_to_blob_mb.c).

**Console Logs**

Info: Waiting for TLS connection
Info: Waiting for TLS connection
Info: Waiting for TLS connection
Error: Time:Thu Jul 18 22:06:27 2024 File:D:\CloudCommunicator\MASTER\ydx-edge-cloud-communicator\external\azure\azure-iot-sdk-c\iothub_client\src\iothub_client_ll_uploadtoblob.c Func:send_http_request Line:128 HTTP code was 400
Error: Time:Thu Jul 18 22:06:27 2024 File:D:\CloudCommunicator\MASTER\ydx-edge-cloud-communicator\external\azure\azure-iot-sdk-c\iothub_client\src\iothub_client_ll_uploadtoblob.c Func:IoTHubClient_LL_UploadToBlob_step1and2 Line:374 unable to HTTPAPIEX_ExecuteRequest
Error: Time:Thu Jul 18 22:06:27 2024 File:D:\CloudCommunicator\MASTER\ydx-edge-cloud-communicator\external\azure\azure-iot-sdk-c\iothub_client\src\iothub_client_ll_uploadtoblob.c Func:IoTHubClient_LL_UploadMultipleBlocksToBlob_Impl Line:726 error in IoTHubClient_LL_UploadToBlob_step1
### Tasks
### Tasks
ykgw-moorthy commented 2 weeks ago

please let me know if you expecting any other information regarding this issue. It would be helpful for us if you prioritize this issue.