msgraph-sdk-dotnet icon indicating copy to clipboard operation
msgraph-sdk-dotnet copied to clipboard

[Client bug]: File with "&#" characters in the filename can`t be uploaded

Open PatrykBobak opened this issue 4 years ago • 1 comments

Describe the bug File with "&#" characters (next to each other) in the filename,e causes errors when requesting or uploading the item Example filename: 屜丯愛金—―〜~‖∥−-¦¦№ 鷗㐀葛渚噓&#x2000B.pptx

Adding a separator between characters allows to successfully send a request. Example filename: 屜丯愛金—―〜~‖∥−-¦¦№ 鷗㐀葛渚噓&-#x2000B.pptx

Code to reproduce issue

string path = "file%26%23.pptx"
GraphClient.Users[msUserID].Drives[driveID].Root.ItemWithPath("/" + path).Request().GetAsync().Result;

Expected behavior The request should be successful

Client version 1.21.0

AB#7280

PatrykBobak avatar Apr 14 '20 13:04 PatrykBobak

#700 Maybe related

Gigabyte0x1337 avatar May 27 '20 11:05 Gigabyte0x1337

Closing older stale issues. Please reopen if occurs with v5.

ddyett avatar Jun 28 '23 01:06 ddyett