Cannot delete or restore item with apostrophe in name from Recycle Bin
Category
- [ ] Question
- [ ] Typo
- [x] Bug
- [ ] Additional article idea
Expected or Desired Behavior
Users should be able to delete or restore item in the Team Site Recycle Bin.
Observed Behavior
Users are not able to delete or restore file in Recycle Bin if the file name has an apostrophe in it "'".
example: test Y'18.docx
The file can be deleted or restored from the admin view as the API call is different.
As an user the API call is:
_api/web/GetRecycleBinItemsByQueryInfo(itemState=@a1,ShowOnlyMyItems=@a2,rowLimit=@a3,orderby=@a4,isAscending=@a5,pagingInfo=@a6)/GetById(@a7)/Restore?@a1=1&@a2=false&@a3=1&@a4=3&@a5=false&@a6=%27id%3D85c7ca3c%252Da976%252D4c0e%252Db3f6%252D88801a348a34%26title%3Dtest%2520Y%2527%252718%252Edocx%26searchValue%3D2018%252D08%252D02T08%253A24%253A08%27&@a7=guid%2785c7ca3c-a976-4c0e-b3f6-88801a348a34%27
AS a tenant admin the API call is:
_api/site/RecycleBin(@a1)/Restore?@a1=guid'85c7ca3c-a976-4c0e-b3f6-88801a348a34'
I guess the presence of apostrophe character is causing issue in URL encoding and breaks the API request.
This issue has been reported to Office 365 support months ago but they closed the case after pushing it to "product team".
Steps to Reproduce
Try to delete or restore a file in a Team Site Recycle Bin that contains an apostrophe in the file name. This has to be done as a end user and not from a tenant admin account.
This issue is being closed as part of an issue list cleanup project. Issues with no activity in the past 6 months that aren't tracked by engineering as bugs were closed as part of this inititive. If this is still an issue, please follow the steps outlined to re-open the issue.