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

v2 Rest Services are deployed twice to the WEB-INF/lib directory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 18.0.0
    • Component/s: BSM
    • Labels:
      None
    • Sprint:
      BSM - Sprint 6, BSM - Sprint 11

      Description

      The v2 Rest Services defined in opennms-webapp-rest module are deployed twice.

      Once in the opennms-webapp-rest-18.0.0-SNAPSHOT.jar and once in the
      org.opennms.features.bsm.rest.impl-18.0.0-SNAPSHOT.jar file.

      The files packaged in org.opennms.features.bsm.rest.impl-18.0.0-SNAPSHOT.jar contain classes from opennms-webapp-rest-18.0.0-SNAPSHOT.jar (e.g. v2/NodeRestService).
      It should only contain the class BusinessServiceRestService.class.

      unzip -l jetty-webapps/opennms/WEB-INF/lib/org.opennms.features.bsm.rest.impl-18.0.0-SNAPSHOT.jar
      Archive:  jetty-webapps/opennms/WEB-INF/lib/org.opennms.features.bsm.rest.impl-18.0.0-SNAPSHOT.jar
        Length     Date   Time    Name
       --------    ----   ----    ----
           2530  02-03-16 12:20   META-INF/MANIFEST.MF
              0  02-03-16 12:20   META-INF/
              0  02-03-16 12:20   META-INF/maven/
              0  02-03-16 12:20   META-INF/maven/org.opennms.features.bsm/
              0  02-03-16 12:20   META-INF/maven/org.opennms.features.bsm/org.opennms.features.bsm.rest.impl/
            177  02-03-16 12:20   META-INF/maven/org.opennms.features.bsm/org.opennms.features.bsm.rest.impl/pom.properties
           5404  02-03-16 09:15   META-INF/maven/org.opennms.features.bsm/org.opennms.features.bsm.rest.impl/pom.xml
              0  02-03-16 12:20   org/
              0  02-03-16 12:20   org/opennms/
              0  02-03-16 12:20   org/opennms/web/
              0  02-03-16 12:20   org/opennms/web/rest/
              0  02-03-16 12:20   org/opennms/web/rest/v2/
          13325  02-03-16 12:14   org/opennms/web/rest/v2/AbstractDaoRestService.class
          21007  02-03-16 12:20   org/opennms/web/rest/v2/BusinessServiceRestService.class
           2258  02-03-16 12:14   org/opennms/web/rest/v2/MinionRestService.class
           2449  02-03-16 12:14   org/opennms/web/rest/v2/MonitoringLocationRestService.class
           2787  02-03-16 12:14   org/opennms/web/rest/v2/NodeRestService.class
           3480  02-03-16 12:14   org/opennms/web/rest/v2/NotificationRestService.class
       --------                   -------
          53417                   18 files
      

      The content of opennms-webapp-rest-18.0.0-SNAPSHOT.jar also contains v2 Rest Services (e.g. NodeRestService).

      unzip -l jetty-webapps/opennms/WEB-INF/lib/opennms-webapp-rest-18.0.0-SNAPSHOT.jar | grep -i v2
              0  02-03-16 12:14   org/opennms/web/rest/v2/
          13325  02-03-16 12:14   org/opennms/web/rest/v2/AbstractDaoRestService.class
           2258  02-03-16 12:14   org/opennms/web/rest/v2/MinionRestService.class
           2449  02-03-16 12:14   org/opennms/web/rest/v2/MonitoringLocationRestService.class
           2787  02-03-16 12:14   org/opennms/web/rest/v2/NodeRestService.class
           3480  02-03-16 12:14   org/opennms/web/rest/v2/NotificationRestService.class
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mvr Markus von Rüden
                Reporter:
                mvr Markus von Rüden
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: