alfresco 5.2 中的 `autoRename` 属性 错误
Error in `autoRename` property in alfresco 5.2
我正在使用 alfresco 5.2
作为 CMS
。我正在使用 autoRename
属性 来创建如下内容(虚拟)。
{
"name":"xyz.pdf",
"nodeType":"cm:content",
"relativePath":"X/Y/Z",
"autoRename":true
}
I get this from below link.
我post这个Json
[{ "name":"yoB4004-RA.pdf","nodeType":"cm:content","relativePath":"1","autoRename":true,"properties":{"cm:title":"yoB4004-RA.pdf","cm:description":"yoB4004-RA.pdf"}},{ "name":"yoB4004-RA2.pdf","nodeType":"cm:content","relativePath":"1","autoRename":true,"properties":{"cm:title":"yoB4004-RA2.pdf","cm:description":"yoB4004-RA2.pdf"}}]
但是出现这个错误
ResponseContentUtil [isSuccess=false, statusCode=400, responseMessage={"error":{"errorKey":"Could not read content from HTTP request body: Unrecognized field \"autoRename\" (Class org.alfresco.rest.api.model.Node), not marked as ignorable\n at [Source: java.io.BufferedReader@13f456b5; line: 1, column: 88] (through reference chain: org.alfresco.rest.api.model.Node[\"autoRename\"])","statusCode":400,"briefSummary":"03280036 Could not read content from HTTP request body: Unrecognized field \"autoRename\" (Class org.alfresco.rest.api.model.Node), not marked as ignorable\n at [Source: java.io.BufferedReader@13f456b5; line: 1, column: 88] (through reference chain: org.alfresco.rest.api.model.Node[\"autoRename\"])","stackTrace":"For security reasons the stack trace is no longer displayed, but the property is kept for previous versions","descriptionURL":"https://api-explorer.alfresco.com"}}]
这个 post 没有 autoRename
属性
'autoRename' 是查询的一部分,您正试图将其传递到 JSON 正文中。
理想情况下,您的请求 URL 应该像下面这样
http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/-my-/children?autoRename=true
你应该通过 JSON 而没有
"autoRename":true
并追加在URL的末尾,如上文URL
我正在使用 alfresco 5.2
作为 CMS
。我正在使用 autoRename
属性 来创建如下内容(虚拟)。
{
"name":"xyz.pdf",
"nodeType":"cm:content",
"relativePath":"X/Y/Z",
"autoRename":true
}
I get this from below link. 我post这个Json
[{ "name":"yoB4004-RA.pdf","nodeType":"cm:content","relativePath":"1","autoRename":true,"properties":{"cm:title":"yoB4004-RA.pdf","cm:description":"yoB4004-RA.pdf"}},{ "name":"yoB4004-RA2.pdf","nodeType":"cm:content","relativePath":"1","autoRename":true,"properties":{"cm:title":"yoB4004-RA2.pdf","cm:description":"yoB4004-RA2.pdf"}}]
但是出现这个错误
ResponseContentUtil [isSuccess=false, statusCode=400, responseMessage={"error":{"errorKey":"Could not read content from HTTP request body: Unrecognized field \"autoRename\" (Class org.alfresco.rest.api.model.Node), not marked as ignorable\n at [Source: java.io.BufferedReader@13f456b5; line: 1, column: 88] (through reference chain: org.alfresco.rest.api.model.Node[\"autoRename\"])","statusCode":400,"briefSummary":"03280036 Could not read content from HTTP request body: Unrecognized field \"autoRename\" (Class org.alfresco.rest.api.model.Node), not marked as ignorable\n at [Source: java.io.BufferedReader@13f456b5; line: 1, column: 88] (through reference chain: org.alfresco.rest.api.model.Node[\"autoRename\"])","stackTrace":"For security reasons the stack trace is no longer displayed, but the property is kept for previous versions","descriptionURL":"https://api-explorer.alfresco.com"}}]
这个 post 没有 autoRename
属性
'autoRename' 是查询的一部分,您正试图将其传递到 JSON 正文中。 理想情况下,您的请求 URL 应该像下面这样
http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/-my-/children?autoRename=true
你应该通过 JSON 而没有
"autoRename":true
并追加在URL的末尾,如上文URL