Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-6979

CugConfiguration.unbindMountInfoProvider doesn't restore the default

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Bug
    • None
    • None
    • authorization-cug
    • None

    Description

      stillalex, looking at the CugConfiguration again I spotted that unbindMountInfoProvider sets the mountInfoProvider field to null, while it initially gets set to a default as follows:

          @Reference
          private MountInfoProvider mountInfoProvider = Mounts.defaultMountInfoProvider();
      

      shouldn't unbinding restore the default and by thus make sure it's not null? if i am missing something feel free to resolved as not a problem... otherwise i would fix it and write a dedicated unit test for the bind/unbind.

      Attachments

        1. OAK-6979.patch
          4 kB
          Angela Schreiber

        Activity

          People

            angela Angela Schreiber
            angela Angela Schreiber
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: