最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

java - Sharepoint REST get file Api returns 400 Bad Request if file name contains single inverted comma ( ' ) - Stack Ov

programmeradmin2浏览0评论

We are trying get the files from Document Library where the endpoint which I am using is

_api/web/GetFileByServerRelativePath(decodedUrl='%2fsites%2fJshareDev%2fTestLibrary%2fcan't.docx')

Here my file name is "can't.docx". If i have any file having (') in path the Api returns an error 400 Bad Request.

I have tried also tried UTF encoding to file name which encoded ' Inverted Comma to %27 like can%27t.docx Also tried to escape the inverted comma like can't.docx nut no luck same error.

I am using java jshare library for getting the data but here something wrong with Api url standards for normal file its works normally.

Don't know what I am missing here.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论