Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Queue attempts to get file contents for deleted or non-existent files #483

Open
1 task
dangur opened this issue Dec 27, 2017 · 0 comments
Open
1 task

Comments

@dangur
Copy link

dangur commented Dec 27, 2017

When running the foia_submissions queue, files that are not present generate a warning when the file_get_contents function is unable to accept the lack of an argument.

Acceptance criteria

  • Running the queue with a deleted or otherwise non-present file should not generate a warning.

Expected Behavior

Running the queue does not attempt to process files which have been deleted from the filesystem.

Actual Behavior

Running the queue results in a warning:

file_get_contents(test.txt):  [warning]
failed to open stream: No such file or directory EmailWebformHandler.php:812
Processed 1 items from the foia_submissions queue

Steps to reproduce the behavior

  1. Upload a test virus file to a foia request form
  2. Wait for the files and request entity to update on cron tasks that call drush feu, drush qcr, and drush queue-run or run manually
  3. See the notice above returned when drush queue-run is run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant