[infinispan-issues] [JBoss JIRA] (ISPN-3390) SingleFileCacheStore.start() fails if cache name contains File.separator

Mircea Markus (JIRA) jira-events at lists.jboss.org
Thu Aug 1 13:12:26 EDT 2013


     [ https://issues.jboss.org/browse/ISPN-3390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mircea Markus updated ISPN-3390:
--------------------------------

        Status: Resolved  (was: Pull Request Sent)
    Resolution: Done

    
> SingleFileCacheStore.start() fails if cache name contains File.separator 
> -------------------------------------------------------------------------
>
>                 Key: ISPN-3390
>                 URL: https://issues.jboss.org/browse/ISPN-3390
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Loaders and Stores
>    Affects Versions: 6.0.0.Alpha1
>            Reporter: Paul Ferraro
>            Assignee: Paul Ferraro
>             Fix For: 6.0.0.Alpha2
>
>
> Using the old FileCacheStore, if the cache name contained File.separator, then the location of the file cache store included corresponding subdirectories.
> e.g.
> If my cache name is "myhost/mydeployment.war", then the file cache store includes a subdirectory "myhost".
> In the new SingleFileCacheStore implementation, however, start() fails because only the directories contained within the location are created.  When the File object is constructed using the cache name, if the cache name contains a File.separator, those subdirectories are *not* created, and start() fails with the following message:
> "Directory ... does not exist and cannot be created!"
> As I see it, this can be fixed in 1 of 2 ways:
>  1. Escape any file separators in the cache name when constructing the file name
>  2. Create the necessary subdirectories on the File object created using the cache name

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the infinispan-issues mailing list