Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-7942

Apache CXF brakes the ReST URLs for nodes and requisitions (because of service-list-path)

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 17.0.0
    • Fix Version/s: 17.0.0
    • Component/s: REST
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      For nodes, we use "/services" to manipulate services.
      For requisitions, we use "/services" to manipulate services on a node inside a requisition.

      Because "/services" is a reserved path for Apache CFX, that makes unusable the new Requisitions UI and provision.pl.

      According with http://cxf.apache.org/docs/jaxrs-services-description.html

      Links to WADL instances for RESTful endpoints are available from {base endpointaddress}/services, in addition to SOAP endpoints if any. For example, given
      
      Base address : 'http://localhost:8080'
      WAR name : 'store'
      CXFServlet : '/books/*'
      jaxrs:server/@address = '/orders'
      and visiting
      
      > http://localhost:8080/store/books 
      > http://localhost:8080/store/books/services
      
      will let you see all the WADL links.
      
      Note that you can override the location at which listings are provided (in case you would like '/services' be available to your resources) using 'service-list-path' CXFServlet parameter, example:
      
      > 'service-list-path' = '/listings'
      

      The service-list-path must be changed to keep using the OpenNMS ReST API without changes.

        Attachments

          Activity

            People

            • Assignee:
              agalue Alejandro Galue
              Reporter:
              agalue Alejandro Galue
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: