Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Fedora 4.7.4
    • Component/s: f4-core
    • Labels:
    • Roadmap Theme:
      Services: Fixity
    • Sprint:
      Sprint 2017 - 19

      Description

      This task is to improve the fixity service response by including the algorithm that was used while calculating the binary's checksum.

      For example,
      # Create a binary resource
      curl -XPUT -i --data-binary @some.pdf -H"Content-Type: application/pdf" localhost:8080/fcrepo/rest/book
      # Run fixity (success)
      curl -i localhost:8080/fcrepo/rest/book/fcr:fixity
      # Change the default digest algorithm
      curl -H"Content-Type: application/sparql-update" --data-binary @fixity.su -XPATCH -i localhost:8080/fcrepo/rest/book/fcr:metadata
      -- Where "fixity.su" is:
      ===========
      PREFIX fedoraconfig: <http://fedora.info/definitions/v4/config#>

      INSERT { <> fedoraconfig:defaultDigestAlgorithm "shaJunk" }
      WHERE { }
      ===========

      Result (failure):
      ---------------------------
      <http://localhost:8080/fcrepo/rest/book#fixity/1478895023401> a premis:Fixity , premis:EventOutcomeDetail ;
              premis:hasEventOutcome "BAD_CHECKSUM"^^<http://www.w3.org/2001/XMLSchema#string> ;
              premis:hasMessageDigest <urn:sha1:44c4d081c1dc3530fdb1a2fe843e570170d3d054> ;
              premis:hasSize "1324959"^^<http://www.w3.org/2001/XMLSchema#long> .
      ---------------------------

      It would be helpful to know the reason for the BAD_CHECKSUM.

      Additionally, it would be a bonus to include better data validation on the value provided in the on-ingest "digest" and the on-demand results.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                claussni Ralf Claussnitzer
                Reporter:
                awoods Andrew Woods
                Reviewer:
                Andrew Woods
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: