Uploaded image for project: 'Stanbol'
  1. Stanbol
  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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.0-incubating
    • Component/s: Commons
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: