Uploaded image for project: 'NetarchiveSuite'
  1. NetarchiveSuite
  2. NAS-2712

Indexserver includes too much in the specifiedPattern used by RawMetadataCache#cacheData(Long id)

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 5.5
    • 5.2.2, 5.3, 5.3.1, 5.4
    • None
    • None
    • 1.2

    Description

      The current specifiedPattern used by RawMetadataCache#cacheData(Long id)
      is

       final String specifiedPattern = ".*" + id + ".*" + metadataFilePatternSuffix; 

      It should be changed to

       final String specifiedPattern = "(.*-)?" + id + "(-.*)?" + metadataFilePatternSuffix; 

      Otherwise the specifiedPattern also accepts all files that contains the id in the metadata filename, i.e. either as a prefix, infix, or suffix.

      Updated to be compliant with both BNF and legacy metadata naming

      Attachments

        Issue Links

          Activity

            People

              svc Søren Vejrup Carlsen (Inactive)
              svc Søren Vejrup Carlsen (Inactive)
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 32m
                  32m