Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 529D7200CB7 for ; Fri, 30 Jun 2017 14:49:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 50B60160BF6; Fri, 30 Jun 2017 12:49:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A2B46160BEB for ; Fri, 30 Jun 2017 14:49:09 +0200 (CEST) Received: (qmail 84256 invoked by uid 500); 30 Jun 2017 12:49:08 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 84198 invoked by uid 99); 30 Jun 2017 12:49:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Jun 2017 12:49:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id B4F1EC090C for ; Fri, 30 Jun 2017 12:49:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id v6RnCSA0lbp9 for ; Fri, 30 Jun 2017 12:49:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 932985FE18 for ; Fri, 30 Jun 2017 12:49:06 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id C2BE3E092E for ; Fri, 30 Jun 2017 12:49:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 2D59E245BE for ; Fri, 30 Jun 2017 12:49:00 +0000 (UTC) Date: Fri, 30 Jun 2017 12:49:00 +0000 (UTC) From: "Julian Reschke (JIRA)" To: dev@jackrabbit.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (JCR-4146) json extension is removed by AbstractWebdavServlet on COPY request MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 30 Jun 2017 12:49:10 -0000 [ https://issues.apache.org/jira/browse/JCR-4146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Julian Reschke updated JCR-4146: -------------------------------- Fix Version/s: 2.14.2 > json extension is removed by AbstractWebdavServlet on COPY request > ------------------------------------------------------------------ > > Key: JCR-4146 > URL: https://issues.apache.org/jira/browse/JCR-4146 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: jackrabbit-webdav > Affects Versions: 2.15.3 > Reporter: Ana Vinatoru > Assignee: Julian Reschke > Labels: candidate_jcr_2_10, candidate_jcr_2_12, candidate_jcr_2_4, candidate_jcr_2_6, candidate_jcr_2_8 > Fix For: 2.16, 2.14.2, 2.15.4 > > Attachments: JCR-4146-2.diff, JCR-4146.diff > > > This issue was first observed via crxDE: the user did a copy / paste on a node with the .json extension (let's say test.json). After saving, the new node was named "Copy of test" instead of "Copy of test.json". > I tracked the request to the AbstractWebdavServlet.doCopy method - and this is where the .json extension seems to be lost. > The Destination header sent by crxde includes the extension, but the new resource created in doCopy does not have it. > The request looked like this: > {code:java} > curl -u admin:admin 'http://localhost:4502/crx/server/crx.default/jcr%3aroot/libs/test.json' -X COPY -H 'Overwrite: T' -H 'Destination: /crx/server/crx.default/jcr%3aroot/libs/Copy%20of%20test.json' -v > {code} > To rule out issues in other layers, I tested with the Jackrabbit 2.14.x standalone. > I uploaded the test.json file via WebDav, then executed the following curl request: > {code:java} > curl -u admin:admin 'http://localhost:9001/server/default/jcr:root/test.json' -X COPY -H 'Overwrite: T' -H 'Destination: /server/default/jcr:root/copytest.json' -v > {code} > The new node was created, but instead of being named "copytest.json", it is called "copytest". -- This message was sent by Atlassian JIRA (v6.4.14#64029)