Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6635

Wrong ExceptionMapper Chosen When a Hierarchy is Used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Done
    • 3.0.5
    • None
    • JAX-RS
    • None
    • Unknown

    Description

      I have an abstract superclass for all of my ExceptionMappers, since they basically all do the same thing, they just handle different exception types. Anyway, when I try to hit a completely wrong URL, my ExceptionMapper is triggered as opposed to using the built-in ExceptionMapper which would return the 404. This can be exhibited by the following test case:

      https://github.com/jwcarman/cxf-sandbox/blob/master/jaxrs/src/test/java/com/carmanconsulting/sandbox/cxf/jaxrs/ExceptionMapperTest.java

      I'm working on a patch to CXF now. Just needed a JIRA number for the branch name.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jwcarman James Carman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: