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 A6642200BA0 for ; Fri, 14 Oct 2016 16:13:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A58D7160AFB; Fri, 14 Oct 2016 14:13:24 +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 D0373160AFA for ; Fri, 14 Oct 2016 16:13:23 +0200 (CEST) Received: (qmail 84363 invoked by uid 500); 14 Oct 2016 14:13:21 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 83952 invoked by uid 99); 14 Oct 2016 14:13:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Oct 2016 14:13:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8D93D2C4C83 for ; Fri, 14 Oct 2016 14:13:21 +0000 (UTC) Date: Fri, 14 Oct 2016 14:13:21 +0000 (UTC) From: "Colm O hEigeartaigh (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (CXF-6568) Default WebApplicationExceptionMapper should be optionally made less specific MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 14 Oct 2016 14:13:24 -0000 [ https://issues.apache.org/jira/browse/CXF-6568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Colm O hEigeartaigh closed CXF-6568. ------------------------------------ > Default WebApplicationExceptionMapper should be optionally made less specific > ----------------------------------------------------------------------------- > > Key: CXF-6568 > URL: https://issues.apache.org/jira/browse/CXF-6568 > Project: CXF > Issue Type: Improvement > Components: JAX-RS > Reporter: Sergey Beryozkin > Assignee: Sergey Beryozkin > Priority: Minor > Fix For: 3.1.3, 3.0.7 > > > Now that the default and custom providers are kept in a single ProviderFactory with a parent-child relationship the default WebApplicationExceptionMapper will win over custom providers which are less specific (ex, RuntimeException mappers) but which expect to catch WebApplicationException. > It is been confirmed on the spec experts list that it is expected that custom mappers can catch WAE thrown by the runtime itself therefore the fact that CXF uses WAE to enforce spec-related error conditions is sound. > There's no clarity though how the runtime is expected to manages such runtime-originated WAEs - via its own WAE mapper or even RuntimeException mapper or somehow else. > Therefore a property "make.default.wae.least.specific" is introduced to ensure a CXF default WAE mapper is only used if no other custom mapper can handle a given WAE to minimize any portability concerns. > This can be further addressed once we get more clarity on the issue -- This message was sent by Atlassian JIRA (v6.3.4#6332)