Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-3459

Log warning message if two end-points are conflicting on the same path

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 7.0.2.CR1, 7.0.2.GA
    • 7.0.0.ER5, 7.0.1.CR1
    • REST
    • None
    • EAP 7.0.2

      RESTEasy should log warning message if two end-points are conflicting on the same path

      Example:

      @Path("/a")
      public class DuplicitePathMethodResource {
          public static final String DUPLICITE_RESPONSE_1 = "response1";
          public static final String DUPLICITE_RESPONSE_2 = "response2";
      
          @Path("/b")
          @GET
          public String dupliciteOne() {
              return DUPLICITE_RESPONSE_1;
          }
      
          @Path("/b")
          @GET
          public String dupliciteTwo() {
              return DUPLICITE_RESPONSE_2;
          }
      }
      

              thofman Tomas Hofman
              kanovotn Katerina Odabasi
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: