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 B22E62009F7 for ; Sat, 7 May 2016 16:15:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B0DE0160A01; Sat, 7 May 2016 14:15:07 +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 A90041609F6 for ; Sat, 7 May 2016 16:15:06 +0200 (CEST) Received: (qmail 29577 invoked by uid 500); 7 May 2016 14:15:05 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 29566 invoked by uid 99); 7 May 2016 14:15:05 -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; Sat, 07 May 2016 14:15:05 +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 25F6BC0677 for ; Sat, 7 May 2016 14:15:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 2PciKIxt7Uyy for ; Sat, 7 May 2016 14:15:03 +0000 (UTC) Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id A43685F2F0 for ; Sat, 7 May 2016 14:15:02 +0000 (UTC) Received: by mail-wm0-f45.google.com with SMTP id g17so118282798wme.1 for ; Sat, 07 May 2016 07:15:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=QLGMujr/25aFm0VLiCYQ4ZyHUVTRrmsP+yi6FYccTJo=; b=iRU239xE9ROYLobFUVTmbJYs6EmjO2CAV6Vt7mMCtIl6Tvo5pYCcJYaGvzlsCC4eZ9 BhjnpMcKG3jWDu04WbVpfO6boHhGUfrvzLapu1Zu8tWkLe6wHsdwrOQ/9LzXaH4sAegI iBtU7xjbAD8Ub44gw5Zh/rttE9UeFIbGbDLm6qZuw+Q5xkxHLR09/CLQdFG6anHRSdjk l9/4ZVIE0kKRayRAiDCXBRGoWAMPCD3WQwkSTENQseYuG6MgSs5yf0wmuh8yxE55zk8s VaNXFp7c70ZsyajhuzplMjMw2MxR8T2T+XFSOBLtk2sNX6gT5zbJbMoGUmbvqVdnXb+E S9vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=QLGMujr/25aFm0VLiCYQ4ZyHUVTRrmsP+yi6FYccTJo=; b=dGj8p4yQLTNl4rG3wGRmzJSctkLyHaRbNMUW50z1IhzpjHqCvtQ5+52SyUk8ubQFfK fmSKKFM8yIGPp8KwFrmUF7iDQX34OE+ZzWjyLIXfhD5PxPFF+srwM64OPNZcghF+CGOy edOYS2rCK/RT8Y6myCs2VecWvETEWrjB2qheJJ4Wk2RY4hhlJiV80yXX8Lu5RIa8tgdl /PLEezvb8GhSrarLOAX8Z6/SnfQPFLc+mqdeBKC1m+2EPFAbSsPPh9wZPPPByXyYBfzR WCiBb064YgIpR4nwE6DRQqqMkrA+oZPhKc3amS8ALu+VQ1RdHg06Auwt1t0bnnKMNtGR x3cA== X-Gm-Message-State: AOPr4FXpGJSNCf1DKbIb5jOEWxQ1vSUtd3EJNyDGVqKqw790qtNGP5UN+ff0/b5I7lX1YxUPrZVjl30HxjA44w== MIME-Version: 1.0 X-Received: by 10.28.230.69 with SMTP id d66mr2603572wmh.73.1462630495774; Sat, 07 May 2016 07:14:55 -0700 (PDT) Received: by 10.28.46.139 with HTTP; Sat, 7 May 2016 07:14:55 -0700 (PDT) Received: by 10.28.46.139 with HTTP; Sat, 7 May 2016 07:14:55 -0700 (PDT) In-Reply-To: <572DE93D.6070607@christopherschultz.net> References: <572DCD7C.1080103@christopherschultz.net> <572DE68C.5010107@christopherschultz.net> <572DE93D.6070607@christopherschultz.net> Date: Sat, 7 May 2016 15:14:55 +0100 Message-ID: Subject: Re: [2.1] cinclude using a pipeline as a generator source From: warrell harries To: users Content-Type: multipart/alternative; boundary=001a1147c6e223703a05324133eb archived-at: Sat, 07 May 2016 14:15:07 -0000 --001a1147c6e223703a05324133eb Content-Type: text/plain; charset=UTF-8 That's right. As per directories and XPath... Well done! Just keep tinkering On 7 May 2016 14:10, "Christopher Schultz" wrote: > Warrell, > > On 5/7/16 8:58 AM, Christopher Schultz wrote: > > Warrell, > > > > Thanks for the quick reply! > > > > On 5/7/16 7:38 AM, warrell harries wrote: > >> cocoon:// is understood as standard > > > > Awesome. I was hoping it would be something simple like that. > > > >> Use :/ to go relative to the root > > > > I'm having trouble configuring it properly, though. > > > > So, my original URL looks like this: > > > > > src="https://host/context/foo/bar/baz.html{$jsessionid}" /> > > > > My sitemap is actually foo/sitemap.xmap, so it matches all the stuff in > /foo > > > > When I change the URL to this: > > > > > > > > I get this error: > > > > java.lang.RuntimeException: The current URI > > (/foo/bar/baz.html;jsessionid=97079C2DC1E19B20F2BEB8303AECF74E) doesn't > > start with given prefix (foo) > > > > If I remove the "extra" leading / : > > > > > > > > I get this error: > > > > org.apache.cocoon.ResourceNotFoundException: No pipeline matched > > request: foo/bar/baz.html;jsessionid=97079C2DC1E19B20F2BEB8303AECF74E > > > > If I use ./ like this: > > > > > > > > I get this error: > > > > org.apache.cocoon.ResourceNotFoundException: No pipeline matched > > request: ./foo/bar/baz.html;jsessionid=97079C2DC1E19B20F2BEB8303AECF74E > > > > I'm veeeery close. Just have to fix the speling, evidently ;) > > The last permutation ended up doing it: > > > > So since the sitemap currently operating is "foo", the "foo" isn't > necessary in the URL? This completely solves my problem but I have an > academic question: what would happen if I wanted to use a pipeline from > a different sitemap in my URL? Something (conceptually) like this? > > > > Since I need to remove the "other-foo" to get this to work, how can I > address it? > > Thanks, > -chris > > >> On 7 May 2016 12:12, "Christopher Schultz" < > chris@christopherschultz.net > >> > wrote: > >> > >> All, > >> > >> I've got a Cocoon setup with a pipeline whose transformer contains > >> something like this: > >> > >> > >> > >> Now, the URL included there is actually coming from Cocoon, and > actually > >> I have a certificate that Java doesn't trust, so I get errors about > PKI > >> certification paths. I can "easily" solve that (and have been for > some > >> time, now) by specifying a truststore for the JVM process that > contains > >> my server's TLS certificate in it. > >> > >> I'd like to stop doing that for at least two reasons: > >> > >> 1. When my server certificate needs an update, I have to update my > trust > >> store and bounce Cocoon > >> 2. It could be more efficient (no loopback HTTP request, no TLS > >> handshake, etc.) > >> > >> Does cinclude understand Cocoon-relative paths? > >> > >> I'm looking for something like this: > >> > >> > >> > >> Does something like that exist? > >> > >> Thanks, > >> -chris > >> > >> > --------------------------------------------------------------------- > >> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > >> > >> For additional commands, e-mail: users-help@cocoon.apache.org > >> > >> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > > For additional commands, e-mail: users-help@cocoon.apache.org > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org > > --001a1147c6e223703a05324133eb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

That's right. As per directories and XPath... Well done!= Just keep tinkering

On 7 May 2016 14:10, "Christopher Schultz&q= uot; <chris@christophers= chultz.net> wrote:
Warrell,

On 5/7/16 8:58 AM, Christopher Schultz wrote:
> Warrell,
>
> Thanks for the quick reply!
>
> On 5/7/16 7:38 AM, warrell harries wrote:
>> cocoon:// is understood as standard
>
> Awesome. I was hoping it would be something simple like that.
>
>> Use :/ to go relative to the root
>
> I'm having trouble configuring it properly, though.
>
> So, my original URL looks like this:
>
>=C2=A0 =C2=A0<cinclude:include
> src=3D"https://host/context/foo/bar/baz.= html{$jsessionid}" />
>
> My sitemap is actually foo/sitemap.xmap, so it matches all the stuff i= n /foo
>
> When I change the URL to this:
>
>=C2=A0 <cinclude:include src=3D"cocoon:///foo/bar/baz.html{$jse= ssionid}" />
>
> I get this error:
>
> java.lang.RuntimeException: The current URI
> (/foo/bar/baz.html;jsessionid=3D97079C2DC1E19B20F2BEB8303AECF74E) does= n't
> start with given prefix (foo)
>
> If I remove the "extra" leading / :
>
>=C2=A0 <cinclude:include src=3D"cocoon://foo/bar/baz.html{$jses= sionid}" />
>
> I get this error:
>
> org.apache.cocoon.ResourceNotFoundException: No pipeline matched
> request: foo/bar/baz.html;jsessionid=3D97079C2DC1E19B20F2BEB8303AECF74= E
>
> If I use ./ like this:
>
>=C2=A0 <cinclude:include src=3D"cocoon://./foo/bar/baz.html{$js= essionid}" />
>
> I get this error:
>
> org.apache.cocoon.ResourceNotFoundException: No pipeline matched
> request: ./foo/bar/baz.html;jsessionid=3D97079C2DC1E19B20F2BEB8303AECF= 74E
>
> I'm veeeery close. Just have to fix the speling, evidently ;)

The last permutation ended up doing it:

=C2=A0 <cinclude:include src=3D"cocoon:/bar/baz.html{$jsessionid}&q= uot; />

So since the sitemap currently operating is "foo", the "foo&= quot; isn't
necessary in the URL? This completely solves my problem but I have an
academic question: what would happen if I wanted to use a pipeline from
a different sitemap in my URL? Something (conceptually) like this?

=C2=A0<cinclude:include src=3D"cocoon://other-foo/bar/baz.html{$jse= ssionid}" />

Since I need to remove the "other-foo" to get this to work, how c= an I
address it?

Thanks,
-chris

>> On 7 May 2016 12:12, "Christopher Schultz" <chris@christopherschultz.net >> <mailto:chris@c= hristopherschultz.net>> wrote:
>>
>>=C2=A0 =C2=A0 =C2=A0All,
>>
>>=C2=A0 =C2=A0 =C2=A0I've got a Cocoon setup with a pipeline who= se transformer contains
>>=C2=A0 =C2=A0 =C2=A0something like this:
>>
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0<cinclude:include src=3D"http= s://my-app/get-some-data" />
>>
>>=C2=A0 =C2=A0 =C2=A0Now, the URL included there is actually coming = from Cocoon, and actually
>>=C2=A0 =C2=A0 =C2=A0I have a certificate that Java doesn't trus= t, so I get errors about PKI
>>=C2=A0 =C2=A0 =C2=A0certification paths. I can "easily" s= olve that (and have been for some
>>=C2=A0 =C2=A0 =C2=A0time, now) by specifying a truststore for the J= VM process that contains
>>=C2=A0 =C2=A0 =C2=A0my server's TLS certificate in it.
>>
>>=C2=A0 =C2=A0 =C2=A0I'd like to stop doing that for at least tw= o reasons:
>>
>>=C2=A0 =C2=A0 =C2=A01. When my server certificate needs an update, = I have to update my trust
>>=C2=A0 =C2=A0 =C2=A0store and bounce Cocoon
>>=C2=A0 =C2=A0 =C2=A02. It could be more efficient (no loopback HTTP= request, no TLS
>>=C2=A0 =C2=A0 =C2=A0handshake, etc.)
>>
>>=C2=A0 =C2=A0 =C2=A0Does cinclude understand Cocoon-relative paths?=
>>
>>=C2=A0 =C2=A0 =C2=A0I'm looking for something like this:
>>
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0<cinclude:include src=3D"cocoon:= //get-some-data" />
>>
>>=C2=A0 =C2=A0 =C2=A0Does something like that exist?
>>
>>=C2=A0 =C2=A0 =C2=A0Thanks,
>>=C2=A0 =C2=A0 =C2=A0-chris
>>
>>=C2=A0 =C2=A0 =C2=A0-----------------------------------------------= ----------------------
>>=C2=A0 =C2=A0 =C2=A0To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>=C2=A0 =C2=A0 =C2=A0<mailto:users-unsubscribe@cocoon.apache.org>
>>=C2=A0 =C2=A0 =C2=A0For additional commands, e-mail: users-help@cocoon.apache.org
>>=C2=A0 =C2=A0 =C2=A0<mailto:users-help@cocoon.apache.org>
>>
>
> ---------------------------------------------------------------------<= br> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org

--001a1147c6e223703a05324133eb--