Let's add an eslint rule to prevent some SP APIs from being used. We should avoid ByServerRelativeUrl API endpoints because they don't support files and folders with # and % characters in their name.
Following API endpoints should be avoided
- GetFileByServerRelativeUrl
- GetFolderByServerRelativeUrl
Instead, we should use:
- GetFileByServerRelativePath
- GetFolderByServerRelativePath
This issue is on hold until these issues are closed:
Let's add an eslint rule to prevent some SP APIs from being used. We should avoid
ByServerRelativeUrlAPI endpoints because they don't support files and folders with#and%characters in their name.Following API endpoints should be avoided
Instead, we should use:
This issue is on hold until these issues are closed:
#and%characters are not supported for folder commands #5328#and%characters are not supported for file commands #4968