Uploaded image for project: 'Synapse'
  1. Synapse
  2. SYNAPSE-1000

findResource method doesn't count http method of the resource

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.1
    • None
    • Core
    • None
    • Important

    Description

      Hi,

      We have two resources in same API and a sample is as follows,

      <resource methods="PATCH GET DELETE PUT"
                   url-mapping="/*"
                   faultSequence="fault">
       .
       .
         </resource>
         <resource methods="POST"
                   url-mapping="/*"
                   faultSequence="fault">
         .
         .
         <handlers>
      
      

      In this two resources we have to url-templates.

      When we try to invoke second resource, findResource() method loose the second resource.

      I checked the "URLMappingBasedDispatcher.java" in synapse and this occures due to http-method is not count inside this method.

      Since many tools allow this kind of api formats I think its better we fix this?

      Thanks.

      Attachments

        Activity

          People

            hiranya Hiranya Kasub Jayathilaka
            iranga.87@gmail.com Irange Thenuwara
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: