Uploaded image for project: 'Stanbol (Retired)'
  1. Stanbol (Retired)
  2. STANBOL-531

Bundle Provider is unable to install Resource of the configured "Install-Path" appears within the file name of an installed resource

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.9.0-incubating
    • Commons
    • None

    Description

      The Bundle Provider fails to install Resources if the path configured for a Bundle (value of the 'Install-Path' key) is contained in the file name of the resource.

      Example:

      Install-Path = config
      Resource = /config/org.example.MyComponent.config

      The reason for that is that the BundleProvider uses String#subString(..) to parse the resource name relative to the path. However of the path is also contained within the resource name than this operation fails.

      In the above example "" (empty string) would be returned instead of "/org.example.MyComponent.config"

      Attachments

        Activity

          People

            rwesten Rupert Westenthaler
            rwesten Rupert Westenthaler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: