我在使用 cURL 创建内容节点时遇到问题。我执行以下命令:
curl -u admin:admin -F"sling:resourceType=foo/bar" -F"title=some title" http://localhost:8080/content/mynode
但我看不到http://localhost:8080/content/mynode.html
,因为显示了以下问题:
Resource dumped by HtmlRendererServlet
Resource path: /content/mynode
Resource metadata: {sling.resolutionPathInfo=.html, sling.resolutionPath=/content/mynode}
Resource type: foo/bar
Resource super type: -
Resource properties
title: some title
sling:resourceType: foo/bar
jcr:createdBy: admin
jcr:created:
http://localhost:8080/content/mynode.json
有以下内容:
{"title":"some title","sling:resourceType":"foo/bar","jcr:createdBy":"admin","jcr:created":"Thu Jul 04 2013 21:24:36 GMT+0300","jcr:primaryType":"sling:Folder"}