Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This is a followup of #2384487: Make the class variables protected for FilterFormat.
We made the properties of the FilterFormat entity protected. That means that the properties are no longer directly accessible from outside of the class. In the file core/modules/editor/src/Form/EditorImageDialog.php (line 51) we forgot to change the property to a method.
This broke a fundamental part of in-place editing and WYSIWYG editing: you no longer can insert images at all!
Comment | File | Size | Author |
---|---|---|---|
#10 | 2389381-9.patch | 2.15 KB | swentel |
#10 | 2389381-9-fail.patch | 1.49 KB | swentel |
#1 | 2389381-1.patch | 701 bytes | daffie |
Comments
Comment #1
daffie CreditAttribution: daffie commentedThis is the same patch as https://www.drupal.org/files/issues/2384487-56.patch.
Comment #2
dawehnerSo we somehow clearly miss some test coverage, right?
Comment #3
daffie CreditAttribution: daffie commentedYes, we do. Wim Leers was not happy that it is impossible to upload or edit images via CKEditor. So I made a patch that hopefully will fix the problem. I did not add test coverage to speed it up. We can add test coverage before we fix the problem. What do you think that the best idea is?
Comment #4
BerdirThis issue title is not very useful :) HEAD is broken is usually only used if the test suite is broken, not for "normal" bugs. And the first part should more closely describe what the problem is, like EditorImageDialog tries to access protected property or so.
Comment #5
daffie CreditAttribution: daffie commentedComment #6
Wim LeersThis broke a fundamental part of in-place editing and WYSIWYG editing: you no longer can insert images at all! I think that makes this critical.
Comment #7
Gábor HojtsySo the AJAX error is:
Which can probably be used to write a quick test that that URL returns no fatals? :)
Comment #8
swentel CreditAttribution: swentel commentedQuickly checking for a test
Comment #9
dawehner.
Comment #10
swentel CreditAttribution: swentel commentedLet's see
Comment #11
Wim LeersHAH! Funny regression test, that's not testing much :) If fine for others to unbreak this, I'm fine with it too. But we (I) will need to add proper test coverage for
EditorImageDialog
at some point.Comment #12
swentel CreditAttribution: swentel commentedYeah it's a rather naieve one, but the fix is so easy that I'd rather get that one in first, but we'll see what other think.
Comment #13
Gábor HojtsyI think this is good for a regression test. Let's not block fixing a critical bug on adding elaborate test coverage for things not related to the bug IMHO.
Comment #14
Gábor HojtsyComment #16
Gábor HojtsyComment #17
Gábor HojtsyComment #18
alexpottThis issue addresses a critical bug and is allowed per https://www.drupal.org/core/beta-changes. Committed b665ec3 and pushed to 8.0.x. Thanks!