You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Nicolas Gomez Navarrete (JIRA)" <ji...@apache.org> on 2012/06/07 12:36:22 UTC
[jira] [Created] (JCS-95) FileNotFound Exception if region name
contains slash
Nicolas Gomez Navarrete created JCS-95:
------------------------------------------
Summary: FileNotFound Exception if region name contains slash
Key: JCS-95
URL: https://issues.apache.org/jira/browse/JCS-95
Project: Commons JCS
Issue Type: Bug
Components: Indexed Disk Cache
Affects Versions: jcs-1.3
Environment: Java - Tomcat 7 - Hibernate 1
Reporter: Nicolas Gomez Navarrete
If region name conatins slashes (this occurs in collection mapping with hibernate 1)
<set role="sgtProgramaIdioma" lazy="false" readonly="true" cascade="all">
<jcs-cache usage="read-write" />
region name = SgtPrograma/sgtProgramaIdioma
Indexed (and Block) cache fails tWork ao initialize, they do a File.mkdirs() on root dir but doesn't check for File.canWrite() or additionall subdirs.
If nothing can be be done we're extend BlockDiskCacheFactory, BlockDiskCacheManager and BlockDiskCache to create subfolders if needed ....
Thanks
--
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] [Commented] (JCS-95) FileNotFound Exception if region name
contains slash
Posted by "Thomas Vandahl (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCS-95?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13292390#comment-13292390 ]
Thomas Vandahl commented on JCS-95:
-----------------------------------
What do you suggest: replacing the slashes or creating the subdirectories? I'm slightly in favor for the former.
> FileNotFound Exception if region name contains slash
> ----------------------------------------------------
>
> Key: JCS-95
> URL: https://issues.apache.org/jira/browse/JCS-95
> Project: Commons JCS
> Issue Type: Bug
> Components: Indexed Disk Cache
> Affects Versions: jcs-1.3
> Environment: Java - Tomcat 7 - Hibernate 1
> Reporter: Nicolas Gomez Navarrete
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> If region name conatins slashes (this occurs in collection mapping with hibernate 1)
> <set role="sgtProgramaIdioma" lazy="false" readonly="true" cascade="all">
> <jcs-cache usage="read-write" />
>
> region name = SgtPrograma/sgtProgramaIdioma
> Indexed (and Block) cache fails tWork ao initialize, they do a File.mkdirs() on root dir but doesn't check for File.canWrite() or additionall subdirs.
> If nothing can be be done we're extend BlockDiskCacheFactory, BlockDiskCacheManager and BlockDiskCache to create subfolders if needed ....
> Thanks
>
--
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] [Commented] (JCS-95) FileNotFound Exception if region name
contains slash
Posted by "Nicolas Gomez Navarrete (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCS-95?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13292687#comment-13292687 ]
Nicolas Gomez Navarrete commented on JCS-95:
--------------------------------------------
I'd rather prefer creating the subdirectories, they're already under cahe's root and that will not change the cache's name resolution.
I think we already have a modified version, i''ll send you asap.
> FileNotFound Exception if region name contains slash
> ----------------------------------------------------
>
> Key: JCS-95
> URL: https://issues.apache.org/jira/browse/JCS-95
> Project: Commons JCS
> Issue Type: Bug
> Components: Indexed Disk Cache
> Affects Versions: jcs-1.3
> Environment: Java - Tomcat 7 - Hibernate 1
> Reporter: Nicolas Gomez Navarrete
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> If region name conatins slashes (this occurs in collection mapping with hibernate 1)
> <set role="sgtProgramaIdioma" lazy="false" readonly="true" cascade="all">
> <jcs-cache usage="read-write" />
>
> region name = SgtPrograma/sgtProgramaIdioma
> Indexed (and Block) cache fails tWork ao initialize, they do a File.mkdirs() on root dir but doesn't check for File.canWrite() or additionall subdirs.
> If nothing can be be done we're extend BlockDiskCacheFactory, BlockDiskCacheManager and BlockDiskCache to create subfolders if needed ....
> Thanks
>
--
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