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 34E31200B66 for ; Thu, 18 Aug 2016 16:57:25 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 337B0160AAE; Thu, 18 Aug 2016 14:57:25 +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 9D9F5160A86 for ; Thu, 18 Aug 2016 16:57:24 +0200 (CEST) Received: (qmail 14254 invoked by uid 500); 18 Aug 2016 14:57:23 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 14238 invoked by uid 99); 18 Aug 2016 14:57:23 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Aug 2016 14:57:23 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7B5D62C02A7 for ; Thu, 18 Aug 2016 14:57:22 +0000 (UTC) Date: Thu, 18 Aug 2016 14:57:22 +0000 (UTC) From: =?utf-8?Q?Johan_Sj=C3=B6berg_=28JIRA=29?= To: dev@cocoon.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (COCOON-2351) ContextSourceFactory calculates the path incorrectly when removing the protocol part MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 18 Aug 2016 14:57:25 -0000 Johan Sj=C3=B6berg created COCOON-2351: ------------------------------------- Summary: ContextSourceFactory calculates the path incorrectly = when removing the protocol part Key: COCOON-2351 URL: https://issues.apache.org/jira/browse/COCOON-2351 Project: Cocoon Issue Type: Bug Components: * Cocoon Core Affects Versions: 2.1.12 Reporter: Johan Sj=C3=B6berg Priority: Minor Fix For: 2.1.13 On line 96 in org.apache.cocoon.components.source.impl.ContextSourceFactor= y the removal of protocol and the first '/' leaves two slashes in the path.= It should be: final String path =3D location.substring(pos+2); This probably worked on older servlet engines but fails at least on Jetty n= ewer than 8.1.11 and 9.0.6 when indexing into paths like context://foo.bar = which results in a call to ServletContext.getRealPath("//foo.bar") -- This message was sent by Atlassian JIRA (v6.3.4#6332)