Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-1241

RegisteredResourceImpl.getInputStream() fails if bundle context storage has moved

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • JCR Installer 3.0.0
    • Installer
    • None

    Description

      The OSGi installer's RegisteredResourceImpl class persists the full path of a data file that it gets from BundleContext.getDataFile().

      If the filesystem folder that saves the bundle context's data is moved, the path of that data file becomes invalid.

      The RegisteredResourceImpl class should just store an identifier for the data file, and use BundleContext.getDataFile() every time it needs to access the actual file.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bdelacretaz Bertrand Delacretaz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: