You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by "Rupert Westenthaler (Created) (JIRA)" <ji...@apache.org> on 2012/03/09 06:24:00 UTC

[jira] [Created] (STANBOL-531) Bundle Provider is unable to install Resource of the configured "Install-Path" appears within the file name of an installed resource

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

        

[jira] [Resolved] (STANBOL-531) Bundle Provider is unable to install Resource of the configured "Install-Path" appears within the file name of an installed resource

Posted by "Rupert Westenthaler (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STANBOL-531?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rupert Westenthaler resolved STANBOL-531.
-----------------------------------------

    Resolution: Fixed

fixed with 	#1298756
                
> 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