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 D3856200CF6 for ; Mon, 18 Sep 2017 23:40:59 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D1F201609DB; Mon, 18 Sep 2017 21:40:59 +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 D2A751609D4 for ; Mon, 18 Sep 2017 23:40:58 +0200 (CEST) Received: (qmail 53184 invoked by uid 500); 18 Sep 2017 21:40:57 -0000 Mailing-List: contact dev-help@tomee.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tomee.apache.org Delivered-To: mailing list dev@tomee.apache.org Received: (qmail 52117 invoked by uid 99); 18 Sep 2017 21:40:57 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Sep 2017 21:40:57 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 019D1185330 for ; Mon, 18 Sep 2017 21:40:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.699 X-Spam-Level: **** X-Spam-Status: No, score=4.699 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.8, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_SBL=4, URIBL_SBL_A=0.1] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id W1MPo3RZEP-S for ; Mon, 18 Sep 2017 21:40:53 +0000 (UTC) Received: from mail-io0-f173.google.com (mail-io0-f173.google.com [209.85.223.173]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 8088660E1B for ; Mon, 18 Sep 2017 21:40:52 +0000 (UTC) Received: by mail-io0-f173.google.com with SMTP id l15so5605490iol.8 for ; Mon, 18 Sep 2017 14:40:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=QjkN/+tme4U/+WbsKBIRoAj4NzaUEa0/fdH1cYgRQuQ=; b=HhefVI73/dmzm/j8bg90MDTwyrEzKhWRh2N9+GumNP2xi2KKvSqB4XrPEX7/5gk4Qp Jpmm1dwehOxc/PmIckeSw+NjRS6AuvXlKhOWvyUaqwWJnKSmFYW0QvKwHM6Tb2hlYaEa FEafK1QTudhgxr5vguxHDGvqfyLvitj6pR7+2doTM879J2BgR+D2kExM81DE+wAaBYez lwLa7ffC9Oplz9qhZyRH4aoEo12dhyeO4wVOtWlxg9bC8eXqBoJLx3yzv2eo7Hyt5nhM m7ayTBczZuOt4iEnqGV5sSHT/Wx+9+fW8nTWCZalBVUhcDtGldOc80lhuK0DheYlID2I JVZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=QjkN/+tme4U/+WbsKBIRoAj4NzaUEa0/fdH1cYgRQuQ=; b=GW5powqhuJxbcgeoUxc1et7v4KbkZUmsIMolRDxSBB4pGv8xBW672YAeGaOGnRgnbp CYqVBn4RGWSmORkrhzFAJlo/rK4WjhOpLhA5OsPkSlCMGB3wF/T/BJMwlFVmGBJILdPn MBlg528IfUB62VEZmxmeQ26W/8FGvccpHxefwaujrzedHDHjw2VOKY3+jgpSN5SChI8m 5/6jpO10GhXwOLCr9dC3Sq8BLchBQTo37FGk6U4DhMmG/4RFfUH78PWcx5fOnQwtUza6 82OV3PBrov5/lKTcdFB0YU1BZeiylweosRq7RJazLqvEGxr921oaabMz+oPec0fvkEaY HcwA== X-Gm-Message-State: AHPjjUiFwGLVl4FI2FUV8wcWh/w30m+qs3FvJmsil3JrPy1EGOXD19YS XdEB/tj2GD6bYPLeW7/q+o4f90ldgi1uldp8mJF5lA== X-Google-Smtp-Source: AOwi7QB6sARXEqP8eJXJhU4OaAkDMfCYj5fKHFzI55HC9qMSkXGnPVMT4egkoZO+ItXH443BMma+nQCY1PC1lKq4POE= X-Received: by 10.202.207.72 with SMTP id f69mr37701764oig.87.1505770851005; Mon, 18 Sep 2017 14:40:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.61.200 with HTTP; Mon, 18 Sep 2017 14:40:50 -0700 (PDT) In-Reply-To: References: <7819854C-261B-4169-9AAE-AA6943854E7F@yahoo.de> <9b481801-9f8a-bd26-e92d-64a883c83f18@tomitribe.com> From: Jonathan Gallimore Date: Mon, 18 Sep 2017 22:40:50 +0100 Message-ID: Subject: Re: JSTL To: "dev@tomee.apache.org" Content-Type: multipart/alternative; boundary="001a113deaf4affce705597d983c" archived-at: Mon, 18 Sep 2017 21:41:00 -0000 --001a113deaf4affce705597d983c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I took another look at the whole Tomcat Taglibs / Xalan thing today, and have uncovered a few things: * Xalan 2.7.1 has a CVE (https://nvd.nist.gov/vuln/detail/CVE-2014-0107), and including a library with a CVE isn't ideal * Using Xalan 2.7.2 seems to have a couple of issues where things don't work quite right (happy to try and dig a bit deeper and try and provide an example) * Switching the Tomcat taglibs to not use Xalan really isn't terribly straightforward. We switched over on master for performance reasons, so I think some performance testing to get some numbers is probably merited in order to double check that and compare, and also to ensure that changing it doesn't negatively impact performance. On the 1.7.x branch I previously noted that I switched back to OpenEJB-JSTL. I have pushed a patch for CVE-2015-0254 for that. Jon On Thu, Sep 14, 2017 at 8:36 PM, Jonathan Gallimore < jonathan.gallimore@gmail.com> wrote: > I'm +1. This feels like a reasonable approach to get the release going > sooner rather than later, without a breaking change from 7.0.3. I am also > in favour of coming back to this soon after release to try use the > functionality in the JDK. > > Jon > > On Thu, Sep 14, 2017 at 8:31 PM, Andy Gumbrecht > wrote: > >> Yes it's just xalan-2.7.2, and this solution seems to be/is painless >> regarding the build and TCK. The Apache Standard Taglib requires it, alo= ng >> with serializer-2.7.2. What makes adding this a breaking issue Mark? If = it >> helps get a release out now to resolve a known CVE then it's +1 from me >> (hmm that rhymes). Once it is out then we can spend several weeks workin= g >> on a better solution. >> >> Andy. >> >> >> >> On 14/09/17 21:00, Jonathan Gallimore wrote: >> >>> I believe its only xalan required, and not xerces as well. >>> >>> What's the rationale for the -1? >>> >>> We'd like to release 7.0.4, and the community appears to want a release >>> based on feedback we have seen on the users list. >>> >>> Changing the jstlel library appears to be not-entirely-trivial (unless >>> someone better than me wants to give some pointers). I'd like to try it= , >>> but I don't want it to drag on for ages and hold up a release. >>> >>> We already established that we'd like this to work out the box without >>> requiring the user to add anything earlier in this thread. >>> >>> So, how do we want to proceed? The other option appears to be picking u= p >>> an >>> updated version of the glassfish library we had before. >>> >>> Jon >>> >>> On 14 Sep 2017 13:26, "Mark Struberg" wrote= : >>> >>> +1 to NOT have a hard xalan and xerces dependency. >>>> Usually we don't need it but use the version which is packaged within >>>> the >>>> JRE. >>>> It should really remain optional pretty please. >>>> >>>> LieGrue, >>>> strub >>>> >>>> >>>> Am 31.08.2017 um 16:25 schrieb Romain Manni-Bucau < >>>>> rmannibucau@gmail.com >>>>> : >>>>> >>>>> Hmm, shout if wrong but think you misunderstood the "optional" in my >>>>> sentence. I meant we patch trunk to remove the adherence to xalan. >>>>> >>>>> >>>>> Romain Manni-Bucau >>>>> @rmannibucau | Blog >>>>> | Old Blog >>>>> | Github >>>> >>>> rmannibucau> | >>>> >>>>> LinkedIn | JavaEE Factory >>>>> >>>>> >>>>> 2017-08-31 15:41 GMT+02:00 Jonathan Gallimore < >>>>> >>>> jonathan.gallimore@gmail.com> >>>> >>>>> : >>>>> >>>>> Thanks Romain. That is definitely the simplest path - xalan is alread= y >>>>>> marked as an optional dependency, so we wouldn't need to do anything= . >>>>>> >>>>> From >>>> >>>>> a compliance perspective, where would this leave us? Wouldn't we need >>>>>> >>>>> this >>>> >>>>> to work out of the box without adding libraries to be compliant? If i= t >>>>>> doesn't affect us in that respect, then I think we're probably good = to >>>>>> >>>>> go. >>>> >>>>> Jon >>>>>> >>>>>> On Thu, Aug 31, 2017 at 1:57 PM, Romain Manni-Bucau < >>>>>> >>>>> rmannibucau@gmail.com >>>> >>>>> wrote: >>>>>> >>>>>> Hi Jon >>>>>>> >>>>>>> there is another thread on it (probably on user@) >>>>>>> >>>>>>> I think we should just make xalan optional in the lib and upgrade. >>>>>>> >>>>>>> >>>>>>> Romain Manni-Bucau >>>>>>> @rmannibucau | Blog >>>>>>> | Old Blog >>>>>>> | Github >>>>>> rmannibucau> | >>>>>>> LinkedIn | JavaEE Factory >>>>>>> >>>>>>> >>>>>>> 2017-08-31 13:19 GMT+02:00 Jonathan Gallimore < >>>>>>> jonathan.gallimore@gmail.com> >>>>>>> : >>>>>>> >>>>>>> Correction - that should be: "CDDL or GPL with classpath exception"= . >>>>>>>> >>>>>>>> On Thu, Aug 31, 2017 at 12:16 PM, Jonathan Gallimore < >>>>>>>> jonathan.gallimore@gmail.com> wrote: >>>>>>>> >>>>>>>> Great question. CDDL _or_ GPL, by the look of it. >>>>>>>>> https://github.com/javaee/jstl-api/blob/master/LICENSE - same as >>>>>>>>> >>>>>>>> JAXB >>>>>> >>>>>>> I >>>>>>> >>>>>>>> believe. >>>>>>>>> >>>>>>>>> Jon >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On Thu, Aug 31, 2017 at 11:55 AM, Jean-Louis Monteiro < >>>>>>>>> jlmonteiro@tomitribe.com> wrote: >>>>>>>>> >>>>>>>>> What is the licence for GlassFish one? >>>>>>>>>> >>>>>>>>>> Le 31 ao=C3=BBt 2017 12:38, "Jonathan Gallimore" < >>>>>>>>>> >>>>>>>>> jonathan.gallimore@gmail.com >>>>>>>> >>>>>>>>> a =C3=A9crit : >>>>>>>>>> >>>>>>>>>> Hi >>>>>>>>>>> >>>>>>>>>>> On master we shifted from openejb-jstl to >>>>>>>>>>> >>>>>>>>>> taglibs-standard-jstlel. I >>>>>> >>>>>>> have >>>>>>>>>> >>>>>>>>>>> done the same on the 1.7.x branch, specifically to move on from >>>>>>>>>>> >>>>>>>>>> the >>>>>> >>>>>>> old >>>>>>>> >>>>>>>>> openejb-jstl (looking at >>>>>>>>>>> https://nvd.nist.gov/vuln/detail/CVE-2015-0254). The >>>>>>>>>>> taglibs-standard-jstlel >>>>>>>>>>> library does seem to depend on xalan, which we currently do not >>>>>>>>>>> >>>>>>>>>> include >>>>>>>> >>>>>>>>> in >>>>>>>>>> >>>>>>>>>>> TomEE. >>>>>>>>>>> >>>>>>>>>>> The impact is that some XML functions in JSP code does not work= , >>>>>>>>>>> >>>>>>>>>> for >>>>>> >>>>>>> example: >>>>>>>>>>> >>>>>>>>>>> <%@ taglib prefix=3D"x" uri=3D"http://java.sun.com/jstl/xml" %> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Dobkin" >>>>>> >>>>>>> genre=3D"Comedy" rating=3D"7" year=3D"2005" /> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Phillips" >>>>>>>> >>>>>>>>> genre=3D"Action" rating=3D"6" year=3D"2004" /> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Dobkin" >>>>>> >>>>>>> genre=3D"Action" rating=3D"6" year=3D"2003" /> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> genre=3D"Adventure" >>>>>>>>>> >>>>>>>>>>> rating=3D"5" year=3D"2002" /> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Anderson" >>>>>>>> >>>>>>>>> genre=3D"Comedy" rating=3D"8" year=3D"2001" /> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> genre=3D"Comedy" >>>>>>>>>> >>>>>>>>>>> rating=3D"6" year=3D"2001" /> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> genre=3D"Comedy" >>>>>>>>>> >>>>>>>>>>> rating=3D"7" year=3D"2000" /> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> Movie 1 Genre: >>>>>>>>>> >>>>>>>>>> />
>>>>> >>>>>>> /> >>>>>>>> >>>>>>>>> fails with java.lang.NoClassDefFoundError: org/apache/xpath/XPath >>>>>>>>>>> >>>>>>>>>> (this on >>>>>>>>>> >>>>>>>>>>> both 1.7.x and master) >>>>>>>>>>> >>>>>>>>>>> Including Xalan does fix this, but its a 3MB dependency. >>>>>>>>>>> >>>>>>>>>>> The alternative is to use org.glassfish.web:javax. >>>>>>>>>>> >>>>>>>>>> servlet.jsp.jstl >>>>>> >>>>>>> instead, >>>>>>>>>>> which I have tested and seems to work. Anyone have any thoughts= ? >>>>>>>>>>> >>>>>>>>>>> Jon >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>> >>>> . >>>> >>>> >> > --001a113deaf4affce705597d983c--