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

FileNotFound Exception if region name contains slash

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: jcs-1.3
    • Fix Version/s: jcs-2.0-beta-1
    • Component/s: Indexed Disk Cache
    • Labels:
      None
    • Environment:
      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

            • Assignee:
              tv Thomas Vandahl
              Reporter:
              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