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 9A93B200D61 for ; Tue, 19 Dec 2017 19:05:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 99560160C1B; Tue, 19 Dec 2017 18:05:04 +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 DF3D7160BFF for ; Tue, 19 Dec 2017 19:05:03 +0100 (CET) Received: (qmail 47859 invoked by uid 500); 19 Dec 2017 18:05:03 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 47846 invoked by uid 99); 19 Dec 2017 18:05:02 -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; Tue, 19 Dec 2017 18:05:02 +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 50E2F1805E0 for ; Tue, 19 Dec 2017 18:05:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.918 X-Spam-Level: X-Spam-Status: No, score=0.918 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.001, SPF_FAIL=0.919] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id tuQBBy-m8RGh for ; Tue, 19 Dec 2017 18:05: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 6EC3F5FAF9 for ; Tue, 19 Dec 2017 18:05: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 D2682E0F88 for ; Tue, 19 Dec 2017 18:05: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 3B723240F2 for ; Tue, 19 Dec 2017 18:05:00 +0000 (UTC) Date: Tue, 19 Dec 2017 18:05:00 +0000 (UTC) From: "Eduardo Breijo (JIRA)" To: dev@myfaces.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (MYFACES-4183) Behavior difference between JSF 2.2 and JSF 2.3 when using facelet prefixes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 19 Dec 2017 18:05:04 -0000 Eduardo Breijo created MYFACES-4183: --------------------------------------- Summary: Behavior difference between JSF 2.2 and JSF 2.3 when using facelet prefixes Key: MYFACES-4183 URL: https://issues.apache.org/jira/browse/MYFACES-4183 Project: MyFaces Core Issue Type: Bug Components: JSR-372 Affects Versions: 2.3.0-beta Reporter: Eduardo Breijo Priority: Minor Attachments: JSF20FacesConfigAnotherServlet.war There is a difference in behavior between JSF 2.2 and JSF 2.3 when using facelet prefixes. I have a sample app that demonstrate this behavior difference. In the app we just define a random servlet and map it to the same prefixes we would normally map to the FacesServlet. We don't map /faces/* to the testServlet but it is automatically added to the FacesServlet, so if you drove a request to something other than .jsf (testServlet) or *.faces (testServlet) the FacesServlet would be invoked for all of the prefix mappings of /faces/*. So that would mean you should see TEST SERVLET printed for the suffix mapping (.jsf and .faces) and then the page1 should be rendered for /faces/*. When you drive a request to: http://localhost:8080/JSF20FacesConfigAnotherServlet/faces/page1.jsf On JSF 2.2: You should see an output of "TEST SERVLET". So it ensures that .jsf mapping is invoking the testServlet. On JSF 2.3: You get a 404, page1.jsf not found. I think that in the case of JSF 2.3, it is invoking the FacesServlet but can't find the .jsf file because it doesn't actually exist. -- This message was sent by Atlassian JIRA (v6.4.14#64029)