Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-1681

Generator "directory": Caching too much

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.7, 2.1.8
    • 2.1.9, 2.2
    • * Cocoon Core
    • None

    Description

      In some cases, an update to the directory is not detected by the DirectoryGenerator.

      Debugging the issue, I discovered that isValid() is called twice on the same DirValidity, but it returns different values (-1 the first time, 1 the second time).

      Apparently, the reason for the inconsistency would be solved by removing the first of the two lines that update the expiry time in the isValid() method in DirValidity, but I am not sure whether this could cause problems in other places.

      A possibility would be that a DirValidity stores the fact that it already detected it is invalid, and is changed so that it always return -1. But... Are DirValidity objects reused? Could this change cause problems? I have not tested, so I don't know.

      Attachments

        1. DirectoryGenerator.java.patch
          0.9 kB
          Antonio Fiol
        2. stack1
          7 kB
          Antonio Fiol
        3. stack2
          7 kB
          Antonio Fiol
        4. stack3
          8 kB
          Antonio Fiol

        Activity

          People

            jbq Jean-Baptiste Quenot
            fiol Antonio Fiol
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: