Steps to reproduce:
1. Upload a file with PRESENTATION flavor and OAI-PMH distribution but not AWS S3 active (and configured)
2. The job will get stuck/fail in OAI-PMH distribution and the whole system is halted because of the deactived AWS service.
3. I could not reproduce it on octestallinone but Michael Stypa could reproduce it too.
I also hit this. I will test you fix.
See PR-1447, thanks for the report!