Closed (fixed)
Project:
Feeds
Version:
8.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
26 Apr 2018 at 15:26 UTC
Updated:
11 May 2018 at 08:24 UTC
Jump to comment: Most recent, Most recent file
In #2951965: PHP 5.6: Fatal error during import: FormattableMarkup::__toString() must not throw an exception we are trying to solve an issue of preventing a fatal error from happening when a validation error occurs. When validation fails, Feeds currently throws a \Drupal\feeds\Exception\ValidationException. It passes the exception message to a FormattableMarkup instance, because else the failure string is sanitized twice, which makes errors render like this:

Add test coverage for rendering an error caused by a ValidationException, so we can continue our work in the other issue.
Patch is coming.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | feeds-field-validation-test-2966515-4.patch | 4.03 KB | megachriz |
| #2 | feeds-field-validation-test-2966515-2.patch | 2.47 KB | megachriz |
Comments
Comment #2
megachrizComment #4
megachrizRemoving the StringTargetTest. Test coverage for display error messages seems more important to me.
Comment #6
megachrizCommitted #4.