Uploaded image for project: 'Bitrepository'
  1. Bitrepository
  2. BITMAG-1135

ReferenceClient always regards input checksum as being in the default algorithm, even when -R is used to specify another algorithm

    XMLWordPrintable

Details

    • Bit Sprint 1

    Description

      Reproduce with this command

      URL="http://sandkasse-01.kb.dk/dav/test.txt"
      hash=$(curl -s $URL | sha1sum - | cut -d' ' -f1)
      echo "sha1: $hash"
      bin/bitmag.sh put-file -c integrationtest2 -u $URL -i testFileID2 -C $hash -R SHA1
      

      Only the checksum pillar will accept the file, and store the sha1 checksum as if it was a md5sum. The file can now not be deleted without it's sha1sum...

      Attachments

        Activity

          People

            masj Mathias Søby Jensen
            abr Asger Askov Blekinge (Inactive)
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: