Uploaded image for project: 'Opencast'
  1. MH-13196

Unregister Resource Servlets of Bundles to be Removed

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed and reviewed
    • Affects Version/s: 7.0
    • Fix Version/s: None
    • Component/s: RESTful Interfaces
    • Labels:
      None
    • Severity:
      Incorrectly Functioning With Workaround
    • Steps to reproduce:
      Hide
      Trying to replace a bundle with a static resource servelet registered by
      Opencast (e.g. runtime-info-ui-ng or admin-ui) will result in an
      org.osgi.service.http.NamespaceException when the updates bundle is
      registered again since the servlet registered by the first bundle never
      got removed and its alias is hence already in use.

      Example: https://asciinema.org/a/208822

      This patch ensures that servlets are unregistered as soon as the
      associated bundle is unloaded. This makes it easily possible to
      live-deploy a new version of that bundle, e.g. using Karaf's
      `bundle:watch` feature without the need for restarting Opencast in the
      process.
      Show
      Trying to replace a bundle with a static resource servelet registered by Opencast (e.g. runtime-info-ui-ng or admin-ui) will result in an org.osgi.service.http.NamespaceException when the updates bundle is registered again since the servlet registered by the first bundle never got removed and its alias is hence already in use. Example: https://asciinema.org/a/208822 This patch ensures that servlets are unregistered as soon as the associated bundle is unloaded. This makes it easily possible to live-deploy a new version of that bundle, e.g. using Karaf's `bundle:watch` feature without the need for restarting Opencast in the process.

      TestRail: Results

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                lkiesow Lars Kiesow
                Reporter:
                lkiesow Lars Kiesow
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  TestRail: Cases