Re: Question: COPY /{db}/_local/{docid}

2014-09-05 Thread muji
Thanks for the insights Jan. For the purposes of my application it is easy for me to enforce the `_local` prefix. Incidentally the same applies for COPY with the `_design` API too. I guess I brought it up because it is an anomaly in that the COPY verb is the only API call where special handling

Question: COPY /{db}/_local/{docid}

2014-08-27 Thread muji
Hi all, Just wondering if this is expected behaviour. When using COPY with _local documents and the Destination header contains a document identifier that does not start with _local then the document appears to be copied without the copied document identifier starting with _local/, ie, the

Re: Question: COPY /{db}/_local/{docid}

2014-08-27 Thread Jan Lehnardt
Heya, I implemented COPY and I was definitely not taking _local docs into any special consideration, so any behaviour is purely accidental :) As far as I can tell, COPY just does what it tells you to do: It copies a document from one URL to another. It is up to you to ensure that the destination