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

The methods in dk.netarkivet.viewerproxy.webinterface.Reporting does not support metadata files using the BNF naming

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 5.4
    • None
    • GUI
    • None

    Description

      The methods in https://github.com/netarchivesuite/netarchivesuite/blob/master/harvester/harvester-core/src/main/java/dk/netarkivet/viewerproxy/webinterface/Reporting.java
      all use the helper method

      private static String getMetadataFilePatternForJobId(long jobid) {
          	// The old invalid metadataFilePattern
          	//return ".*"+jobid + ".*" + metadatafile_suffix;
          	return jobid + metadatafile_suffix;
      }
      

      This code currently assumes that we do the legacy style naming of the metadatafiles
      and not the prefix stile :
      https://github.com/netarchivesuite/netarchivesuite/blob/master/harvester/harvester-core/src/main/java/dk/netarkivet/harvester/harvesting/metadata/MetadataFileWriter.java

      The difference:

      if(isPrefix) {
                      return collectionName + "-" + jobID + "-" + harvestID + "-metadata-" + versionNumber + ".warc" + possibleGzSuffix;
                  } else {
                      return jobID + "-metadata-" + versionNumber + ".warc" + possibleGzSuffix;
      }
      

      Currently, collectionName is read from setting HarvesterSettings.HERITRIX_PREFIX_COLLECTION_NAME

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: