Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-4661

FileInstall: Property "felix.fileinstall.filter" ignored when the service start

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • fileinstall-3.4.2
    • fileinstall-3.6.4
    • File Install
    • None

    Description

      When the fileinstall service start, it scan the container to find bundles already deployed whose location refers to a file in the configured folder.

      However, this scan ignore the "felix.fileinstall.filter" : a bundle whose location is in the configured folder is registered by the DirectoryWatcher regardless of his name.

      for instance, i have a Karaf instance with the following configuration :
      folder: etc, filter: *.cfg, startLevel = 30
      folder: etc, filter: *.xml, startLevel = 80

      if i add a blueprint file in "etc", it will be transformed into a bundle at location "blueprint:file:etc/myfile.xml". Then, if i restart the container, this bundle will be registered by the two instances of DirectoryWatcher, and nasty things will happen (randomly refresh of this bundle, bundle not starting, etc)

      Attachments

        1. felix4661.patch
          2 kB
          metatech
        2. fi.patch
          2 kB
          J. Brébec

        Activity

          People

            gnodet Guillaume Nodet
            j3rem1e J. Brébec
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: