From dev-return-50751-archive-asf-public=cust-asf.ponee.io@jackrabbit.apache.org Mon Sep 2 13:57:03 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 014A5180674 for ; Mon, 2 Sep 2019 15:57:02 +0200 (CEST) Received: (qmail 2750 invoked by uid 500); 2 Sep 2019 15:03:43 -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 2739 invoked by uid 99); 2 Sep 2019 15:03:43 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Sep 2019 15:03:43 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id A1A91E30C9 for ; Mon, 2 Sep 2019 13:57:01 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 5A7DE7822C6 for ; Mon, 2 Sep 2019 13:57:00 +0000 (UTC) Date: Mon, 2 Sep 2019 13:57:00 +0000 (UTC) From: "Julian Reschke (Jira)" To: dev@jackrabbit.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (JCR-4458) When JcrRemotingServlet deployed on non-root context, AclResource Webdav request fails MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JCR-4458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Julian Reschke updated JCR-4458: -------------------------------- Labels: candidate_jcr_2_18 (was: ) > When JcrRemotingServlet deployed on non-root context, AclResource Webdav request fails > -------------------------------------------------------------------------------------- > > Key: JCR-4458 > URL: https://issues.apache.org/jira/browse/JCR-4458 > Project: Jackrabbit Content Repository > Issue Type: Bug > Affects Versions: 2.18.2 > Reporter: Woonsan Ko > Assignee: Julian Reschke > Priority: Major > Labels: candidate_jcr_2_18 > Fix For: 2.20, 2.19.5 > > Attachments: JCR-4458.diff > > > If {{org.apache.jackrabbit.server.remoting.davex.JcrRemotingServlet}} is configured in a non-root web application, the contextPath of which is "/cms" for example with the servletPath, "/server", then {{javax.jcr.Session#importXML(...)}} fails from a JCR client based on JCR/WebDAV. In other words, {{#importXML(...)}} fails from a JCR {{Session}} using a repository which can be created like the following for JCR over WebDAV: > {code} > String repositoryAddress = "http://localhost:8080/cms/server"; > Jcr2davRepositoryFactory factory = new Jcr2davRepositoryFactory(); > Map params = new HashMap(); > params.put(JcrUtils.REPOSITORY_URI, repositoryAddress); > Repository repository = factory.getRepository(params); > // ... > {code} > It seems like that {{Session#importXML(...)}} call invokes an AclResource Webdav request first on the specific resource path, but {{org.apache.jackrabbit.webdav.jcr.version.report.JcrPrivilegeReport#init(DavResource, ReportInfo)}} does not remove the contextPath, "/cms" for example, when determining the resoucrePath. > Unlike the {{JcrPrivilegeReport}}, {{org.apache.jackrabbit.webdav.WebdavRequestImpl#getHrefLocator(String, boolean)}} seems to remove the contextPath properly. -- This message was sent by Atlassian Jira (v8.3.2#803003)