From dev-return-91490-archive-asf-public=cust-asf.ponee.io@sling.apache.org Wed Sep 12 15:53:08 2018 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 [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 8B451180630 for ; Wed, 12 Sep 2018 15:53:07 +0200 (CEST) Received: (qmail 67216 invoked by uid 500); 12 Sep 2018 13:53:06 -0000 Mailing-List: contact dev-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list dev@sling.apache.org Received: (qmail 67205 invoked by uid 99); 12 Sep 2018 13:53:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Sep 2018 13:53:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id F223BC85CF for ; Wed, 12 Sep 2018 13:53:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id YFri53ul1eRI for ; Wed, 12 Sep 2018 13:53:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 549D85F43B for ; Wed, 12 Sep 2018 13:53:01 +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 CC586E25B0 for ; Wed, 12 Sep 2018 13:53: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 3D9B426EE0 for ; Wed, 12 Sep 2018 13:53:00 +0000 (UTC) Date: Wed, 12 Sep 2018 13:53:00 +0000 (UTC) From: "Robert Munteanu (JIRA)" To: dev@sling.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SLING-7916) WebDav deployment method fails to deploy when /libs is not readable 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/SLING-7916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16612157#comment-16612157 ] Robert Munteanu commented on SLING-7916: ---------------------------------------- [~kwin] - maybe you have an idea about this? With Starter 11-SNAPSHOT I can't seem to reliably check if a folder exists using the webdav method. Accessing http://localhost:8080/libs returns {noformat} HTTP/1.1 302 Found Content-Length: 0 Date: Wed, 12 Sep 2018 13:49:26 GMT Location: http://localhost:8080/libs/ X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN {noformat} Following the redirect to http://localhost:8080/libs/ results in {noformat} HTTP/1.1 403 Forbidden Content-Type: text/html;charset=utf-8 Transfer-Encoding: chunked {noformat} So the authentication part is not the problem. > WebDav deployment method fails to deploy when /libs is not readable > ------------------------------------------------------------------- > > Key: SLING-7916 > URL: https://issues.apache.org/jira/browse/SLING-7916 > Project: Sling > Issue Type: Bug > Components: Maven Plugins and Archetypes > Reporter: Robert Munteanu > Assignee: Robert Munteanu > Priority: Major > Fix For: Maven Sling Plugin 2.3.10 > > > I created a Sling module using the {{sling-jcrinstall-bundle-archetype}}. Deployment using the {{maven-sling-plugin}} fails, with the following message: > {noformat}Installation on http://localhost:8080/libs/sling/install failed, cause: Could not find any intermediate path up until the root of http://localhost:8080/libs/sling/install.{noformat} > At least {{/libs}} is there, so that message is incorrect. Verifying the Sling request log I see that redirects sent from Sling are followed using the {{anonymous}} user: > {noformat}127.0.0.1 - admin 12/Sep/2018:15:14:48 +0200 "PUT /libs/sling/install/bundle-test-002-1.0-SNAPSHOT.jar HTTP/1.1" 409 2455 "-" "Jakarta Commons-HttpClient/3.1" > 127.0.0.1 - admin 12/Sep/2018:15:14:48 +0200 "HEAD /libs/sling/install HTTP/1.1" 404 2524 "-" "Jakarta Commons-HttpClient/3.1" > 127.0.0.1 - admin 12/Sep/2018:15:14:48 +0200 "HEAD /libs/sling HTTP/1.1" 302 - "-" "Jakarta Commons-HttpClient/3.1" > 127.0.0.1 - anonymous 12/Sep/2018:15:14:48 +0200 "HEAD /libs/sling/ HTTP/1.1" 404 2461 "-" "Jakarta Commons-HttpClient/3.1" > 127.0.0.1 - admin 12/Sep/2018:15:14:48 +0200 "HEAD /libs HTTP/1.1" 302 - "-" "Jakarta Commons-HttpClient/3.1" > 127.0.0.1 - anonymous 12/Sep/2018:15:14:48 +0200 "HEAD /libs/ HTTP/1.1" 404 2407 "-" "Jakarta Commons-HttpClient/3.1" > {noformat} > This is wrong, and we should always be accessing the repository using the configured user and password. -- This message was sent by Atlassian JIRA (v7.6.3#76005)