Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-24593

Cannot use Notification templates from Studio in a Unit test

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 8.10, 9.10
    • Fix Version/s: 8.10-HF27, 9.10-HF04, 10.2
    • Component/s: Tests
    • Release Notes Summary:
      The Notification templates defined in Studio can be used in Unit tests.
    • Tags:
    • Backlog priority:
      900
    • Sprint:
      nxfit 10.2.1
    • Story Points:
      5

      Description

      When loading a template (`org.nuxeo.ecm.platform.ec.notification.service.NotificationService#registerTemplate`) in a Partial Bundle; the class loader is empty and `org.nuxeo.osgi.BundleImpl#getResource` is throwing an NPE

      See https://github.com/harlanbrown/sample-studio-test for reproduction case

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 3 hours
                  1d 3h