Re: COPY: "Duplicate" functionality

Julian Reschke <julian.reschke@gmx.de> Mon, 31 October 2016 18:15 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 529811299AC for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 31 Oct 2016 11:15:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.398
X-Spam-Level:
X-Spam-Status: No, score=-8.398 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-1.497, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id D13_Ib7HZx9m for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 31 Oct 2016 11:15:38 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B63641299A7 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 31 Oct 2016 11:15:38 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1c1H30-0006bW-9n for ietf-http-wg-dist@listhub.w3.org; Mon, 31 Oct 2016 18:11:02 +0000
Resent-Date: Mon, 31 Oct 2016 18:11:02 +0000
Resent-Message-Id: <E1c1H30-0006bW-9n@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <julian.reschke@gmx.de>) id 1c1H2u-0006Wq-2M for ietf-http-wg@listhub.w3.org; Mon, 31 Oct 2016 18:10:56 +0000
Received: from mout.gmx.net ([212.227.15.19]) by titan.w3.org with esmtps (TLS1.2:DHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <julian.reschke@gmx.de>) id 1c1H2n-00058a-Sz for ietf-http-wg@w3.org; Mon, 31 Oct 2016 18:10:50 +0000
Received: from [192.168.178.20] ([93.217.85.249]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MS5Dm-1cTQ2h0zta-00TGxQ; Mon, 31 Oct 2016 19:10:21 +0100
To: Graham Leggett <minfrin@sharp.fm>, HTTP Working Group <ietf-http-wg@w3.org>
References: <9104F1BF-CA99-4640-A350-EDE4D9290C84@sharp.fm>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <c9f7ee15-cfbb-26f5-4252-d587374f83d5@gmx.de>
Date: Mon, 31 Oct 2016 19:10:21 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0
MIME-Version: 1.0
In-Reply-To: <9104F1BF-CA99-4640-A350-EDE4D9290C84@sharp.fm>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Provags-ID: V03:K0:duusGb+UgR8WnHzdpB8CXldGE6kH3Tm58CfZMbxmMlJfAev/rCm ZJqFJVA/SNbgNAAvB3Pi3dhkmuljsLJfz9Kw3EWXbEJnUc9bBRB5bUkFToPtDZWBAHeOiUt 3TKD8R22N2uEqWOodPr5QwyLE7sHv3FEZfx/veht2ntE/a0d63EzCO0tILCEhBfNh/Jg8s7 hf1JB/KCUDS1G+eh0+9oA==
X-UI-Out-Filterresults: notjunk:1;V01:K0:cCFfgnI98G8=:Dz/2g7YA9+eArjMvW/gsyl br/fzxpcWmhhD3mUV/7qtZSYqERpZD0z4USzzYZme3/LZMppaoHGWxnOj0PZyTtOn6NtqkBXy fOuexCbOgikcPCbaZCTCWrLER05gqVp6WuefmbPoYHOu4Kv1IV4RB29IaanxTjO6gHCJsewgy ODCdWLH+NEPsJ0XRHh5RL4CSjdnh1u4Cnkp5z3s4XmyVsntD7saaIRAl55LD5fcBxBB5EZtBo TfiCQ/pNZaeTcJUhJtvmm+56lbcbryjz1LK64vEOBvCY1kRFruNEckaoptERLBIkfQJ/ckl1g WJiBoKaZkLzGDDLOGoiMnNtEqsppFv6Bf+VqNTpwZMc3iKePnDaTLERLeYhPfR+8LtSzfp7OK aQuqTG1qrep1e05aAq2tz/UXlM607VGcCRf9lzf4JFxifSarBlO1/bHsQXVzNqL2N5UCkA/Oo zmwJrJbeAa16k/gikg0ds2d17zDtpF7SvEsWRaBObOrnIOrppfpDRPQPcmqRYqFnoIdzuqpDJ R//3a1FjoTQZZFhAzgWM9RuXHpKPwXYSg/9y0YRb7Vvqq0DsNI6N3esmw32BaMyEd3+fnSnSF 8wYRN+Epn9laoSYj2k/acMzMy5vZvjSXd7n5OjitxB65vbi+62s3rRan0/EkoRc4UZMVMbvTF OkNAko4Jt7/ROqauRXioh7EScuV4v5BI5ONjQaCXj+p4QufbLuKaQKrI5YnQu+nWkdcuwWlYH vT87JBLprxRd8EI6Eyf5g31GrP/fD/fYroQuD7gH+ACSsOEvwvzbcllvrjMw062MdT6V04lO+ 6kw7qn6
Received-SPF: pass client-ip=212.227.15.19; envelope-from=julian.reschke@gmx.de; helo=mout.gmx.net
X-W3C-Hub-Spam-Status: No, score=-6.7
X-W3C-Hub-Spam-Report: AWL=-0.059, BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1c1H2n-00058a-Sz 8fad5da6bde21701c68c7aaa738aca43
X-Original-To: ietf-http-wg@w3.org
Subject: Re: COPY: "Duplicate" functionality
Archived-At: <http://www.w3.org/mid/c9f7ee15-cfbb-26f5-4252-d587374f83d5@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/32756
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 2016-10-31 18:49, Graham Leggett wrote:
> Hi all,
>
> According to https://tools.ietf.org/html/rfc4918#section-9.8, the COPY method allows me to make a copy of a resource, but only as long as I know the destination URL of my copy: "The Destination header MUST be present.”.
>
> What I need to implement is functionality that matches the “Duplicate” menu item in the MacOS Finder. In other words, I want to make a copy of an URL, but I want the server to decide on the URL to the COPY.
>
> Is this possible while at the same time being RFC compliant?
>
> If I was to set the Destination header to the same URL as the source, or perhaps the parent collection of the source, would that make sense?
>
> Regards,
> Graham

Well, there is no standard functionality for that. You can sure 
experiment if you control both client and server (I'd probably try 
"path/*" as destination URI).

Best regards, Julian