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

findResource method doesn't count http method of the resource

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1
    • None
    • Core
    • Patch

    Description

      Hi,

      I have a api with two resources with "/*" url mapping and deferent uri-templates. 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 case when we invoke second api, findResource() method cannot return the resource . Simply we cannot invoke it.

      I analyzed the source "URLMappingBasedDispatcher.java" in apache synapse and in findresource() method doesnot count http-methods of the resources causes this issue.

      Since there are tools which can produce this type of api.xml's I think its better to add this to synapse too.

      Thanks.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: