admin管理员组文章数量:1356851
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.
本文标签:
版权声明:本文标题:java - Sharepoint REST get file Api returns 400 Bad Request if file name contains single inverted comma ( ' ) - Stack Ov 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743943106a2565925.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论