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

                 Key: STANBOL-531
                 URL: https://issues.apache.org/jira/browse/STANBOL-531
             Project: Stanbol
          Issue Type: Bug
          Components: Commons
            Reporter: Rupert Westenthaler
            Assignee: Rupert Westenthaler


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"


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to