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

Recylce bin can erroneously overwrite live data entries

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: jcs-1.2.7.9
    • Component/s: Indexed Disk Cache
    • Labels:
      None

      Description

      There is a bug in the SortedPreferrentialArray in which after the Recyclye bin has been filled, and a spot in the bin is requested that is larger than the largest element, the last element in the array is returned. If the last recycle bin spot is not actually the last element in the data file, the element after the recycle bin element will be partially overwritten with the new data. That element will no longer be valid, which will eventually cause the entire cache to be reset.

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              asmuts Aaron Smuts
              Reporter:
              bcrow Brian Crow

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment