Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295547

Validate file exists in Batch::setFile()

$
0
0

Problem/Motivation

When the batch API was converted into OO syntax the functionality was left as it was in Drupal 8.3 and before. Because of this an error can happen if the file passed into setFile() does not exist.

Proposed resolution

Update the the code in core/lib/Drupal/Core/Batch/Batch.php, as well as other files, to ensure the file exists and log the problem and throw an exception if it does not.

Remaining tasks

  • Update the code

User interface changes

None

API changes

None

Data model changes

None


Viewing all articles
Browse latest Browse all 295547


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>