Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Latest commit

 

History

History
15 lines (13 loc) · 711 Bytes

Notes.md

File metadata and controls

15 lines (13 loc) · 711 Bytes

Notes

When using BagItPHP you should be aware.

  1. Tags order is not maintained.
  2. Destination paths are not validated. (ie. data/../../..//var/lib)
  3. To properly add a fetch file to your bag you should:
    1. Add the Fetch URL ($bag->fetch->add('http://something', 'data/destination')).
    2. Download the fetch files ($bag->fetch->download()).
    3. Update the bag ($bag->update())
    4. Manually delete the downloaded files from the bag.
    5. Package your bag ($bag->package('somefile', 'zip')).
  4. Tag Manifests do not include any tag files files other than bagit.txt, bag-info.txt, fetch.txt and manifest-(sha1|md5).txt
  5. Fetch files are not validated as part of the bag.