Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1739

Order ParamConverterProviders and ExceptionMappers by @Priority

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.0.0.Beta1, 3.5.0.CR1
    • None
    • None
    • None

    Description

      Currently, when ResteasyProviderFactory registers a new ParamConverterProvider, it adds it to the end of a list, which means that a new ParamConverterProvider with a high priority, according to a @Priority annotation, could get tried after a lower priority ParamConverterProvider. The list should be ordered by decreasing priority.

      Also, when ResteasyProviderFactory registers a new implementation of ExceptionMapper<Exception>, it overwrites any implementation that is already registered. That should happen only if the new implementation has a higher priority, according to a @Priority annotation.

      Attachments

        1. priority.tar
          30 kB
        2. server.log.zip
          7 kB

        Activity

          People

            rsigal@redhat.com Ronald Sigal
            rsigal@redhat.com Ronald Sigal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: