Uploaded image for project: 'Commons JCS'
  1. Commons JCS
  2. JCS-95

FileNotFound Exception if region name contains slash

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • jcs-1.3
    • jcs-2.0-beta-1
    • Indexed Disk Cache
    • None
    • Java - Tomcat 7 - Hibernate 1

    Description

      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

      Attachments

        Activity

          People

            tv Thomas Vandahl
            nico@redinvisible.com Nicolas Gomez Navarrete
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 4h
                4h
                Remaining:
                Remaining Estimate - 4h
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified