[
https://issues.apache.org/jira/browse/JCR-3005?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Christian Stocker updated JCR-3005:
-----------------------------------
Attachment: patch_commit_d0596cade79b.patch
Attached is a patch, which basically implements this. It's a Proof of Concept
and far from perfect. But I wanted to get some feedback before I invest more
time
It is modelled the same way as COPY, CLONE and DIFF in JcrRemotingServlet.java
The basic idea is taken from
http://wiki.apache.org/couchdb/HTTP_Bulk_Document_API but I choose not to use
JSON for submitting the data for consistency and code reuseability
You can call it with
curl -X POST -d ':get=/node1&:get=/node2'
http://localhost:8080/server/workspace/jcr:root/node2.0.json
and it returns an array of all the found nodes as a JSON array
Questions:
* Should we return the amount of found nodes as well. Something like
{"total_nodes": 3, "nodes": [node1,node2,node3]}?
* Now, if the node in the URL matches on of the nodes in the body, it is only
returned once, if the same node is mentioned more than once in the body it is
returned more than once. What should be the approach here? Should we avoid
duplicate nodes or just live with it?
* What should happen, if there's a node not found. I prefer the "just ignore
it" way
* What should happen, if there's any other error? Report that or just return
what can be returend?
* I added the path of the node as "jcr:path" to the data. Is this the right
approach or does anyone have a better idea?
> Make it possible to get multiple nodes in one call via davex
> ------------------------------------------------------------
>
> Key: JCR-3005
> URL: https://issues.apache.org/jira/browse/JCR-3005
> Project: Jackrabbit Content Repository
> Issue Type: New Feature
> Components: jackrabbit-jcr-server
> Reporter: Christian Stocker
> Attachments: patch_commit_d0596cade79b.patch
>
>
> I'm working on this currently
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira