Details
-
Bug
-
Status: Ready for release test
-
Minor
-
Resolution: Fixed
-
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