Skip to content

Create eslint rule to prevent the use of ByServerRelativeUrl API #5333

@milanholemans

Description

@milanholemans

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:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions