NASA-PDS / doi-service

Service and tools for generating DOIs for PDS bundles, collections, and data sets
https://nasa-pds.github.io/doi-service
Other
2 stars 3 forks source link

Group Write Permission Fix #300

Closed collinss-jpl closed 2 years ago

collinss-jpl commented 2 years ago

🗒️ Summary

This PR addresses an issue where certain files created by the DOI service did not have group-write permissions set. This prevented users other than the installer of the service to utilize the service after a fresh install or rebuild of the transaction database. The transaction classes have been updated to ensure the correct group-write permissions are set for both the transaction database file and the transaction history store.

This PR also addresses an issue discovered where the contents of an input directory could be copied multiple times in the transaction history, one for each input label within the directory. The service now assigns the source input file to each DOI parsed to ensure only the minimum set of files are copied per-transaction.

⚙️ Test Data and/or Report

A unit test suite has been added for the transaction classes. tox.log

♻️ Related Issues

Fixes #299