Problem/Motivation
In #2932226: Media Type entities don't validate machine name properly we added a workaround to prevent the bug from #2557299: Any AJAX call disregards machine name verification when AJAX is used and leads to a fatal error from affecting the MediaType form in a very visible way. That workaround should be removed once the underlying bug is resolved.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 2934154-3-remove-workaround.patch | 2.24 KB | krilo_89 |
| #3 | 2934154-3-remove-workarond-and-apply-2557299.patch | 7.73 KB | krilo_89 |
| #3 | 2934154-3-Test_Only.patch | 1.28 KB | krilo_89 |
Comments
Comment #3
krilo_89 commentedThere's a patch in https://www.drupal.org/project/drupal/issues/2557299#comment-12293838. If this patch is applied and the workaround is removed, this issue will be resolved.
The first patch included is a Test Only which will show that the current code with the workaround doesn't pass. The second patch, will include #2557299: Any AJAX call disregards machine name verification when AJAX is used and leads to a fatal error and remove the workaround from #2932226: Media Type entities don't validate machine name properly. This will pass the test.
The third patch will include the test and remove the workaround. After #2557299: Any AJAX call disregards machine name verification when AJAX is used and leads to a fatal error is committed, this issue can be committed too.
Comment #7
phenaproximaI rerolled #2557299: Any AJAX call disregards machine name verification when AJAX is used and leads to a fatal error against 8.6.x, so I'm re-postponing this until that lands.
Comment #8
phenaproximaIn #2557299-71: Any AJAX call disregards machine name verification when AJAX is used and leads to a fatal error, I have adapted Media's existing tests to prove both the problem and the fix, and thus removed the workaround. Therefore, I'm closing this issue as outdated.