Commit bfef075
fix: address code review issues across frontend, backend, and tests
Fix security, correctness, and robustness issues identified by deep code
review, plus expand test coverage and fix OSGi test version mismatch.
Frontend: track rAF IDs with disconnect cleanup, fix collaboration listener
leak, replace isApiChange boolean with counter, sanitize editorId/CSS values,
convert O(n*m) plugin filter to Set-based O(n), normalize URL check.
Backend: sync ContentManager on setHtmlSanitizer, remove duplicate
ValueChangeEvent, fix mixed CJK word count, add defensive copies for
ToolbarStyle/StyleDefinition/toolbar array, allow relative upload URLs,
add builder build-once guard, reject null MentionFeed, block full 127.x
loopback range, remove dead code in PremiumPlugin.
Tests: fix wrong default expectations, fix flaky upload test with
CountDownLatch, add ~35 new tests for config round-trips, premium
dependencies, autosave boundaries, word count, and build-once guard.
Use dynamic project.version in OSGi test to prevent version mismatch.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 21f11f6 commit bfef075
File tree
16 files changed
+449
-53
lines changed- src
- main
- java/com/wontlost/ckeditor
- internal
- resources/META-INF/frontend/vaadin-ckeditor
- test/java/com/wontlost/ckeditor
- osgi
16 files changed
+449
-53
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
| 439 | + | |
439 | 440 | | |
440 | | - | |
| 441 | + | |
441 | 442 | | |
442 | 443 | | |
443 | 444 | | |
| |||
474 | 475 | | |
475 | 476 | | |
476 | 477 | | |
477 | | - | |
| 478 | + | |
478 | 479 | | |
479 | 480 | | |
480 | 481 | | |
| |||
588 | 589 | | |
589 | 590 | | |
590 | 591 | | |
591 | | - | |
| 592 | + | |
592 | 593 | | |
593 | 594 | | |
594 | 595 | | |
| |||
1337 | 1338 | | |
1338 | 1339 | | |
1339 | 1340 | | |
1340 | | - | |
| 1341 | + | |
1341 | 1342 | | |
1342 | 1343 | | |
1343 | 1344 | | |
| |||
1448 | 1449 | | |
1449 | 1450 | | |
1450 | 1451 | | |
1451 | | - | |
| 1452 | + | |
1452 | 1453 | | |
1453 | 1454 | | |
1454 | 1455 | | |
| |||
1575 | 1576 | | |
1576 | 1577 | | |
1577 | 1578 | | |
1578 | | - | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
1579 | 1582 | | |
1580 | 1583 | | |
1581 | 1584 | | |
| |||
1619 | 1622 | | |
1620 | 1623 | | |
1621 | 1624 | | |
1622 | | - | |
| 1625 | + | |
1623 | 1626 | | |
1624 | 1627 | | |
1625 | 1628 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | | - | |
| 310 | + | |
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
| 314 | + | |
| 315 | + | |
314 | 316 | | |
315 | 317 | | |
316 | | - | |
317 | 318 | | |
318 | 319 | | |
319 | 320 | | |
| |||
657 | 658 | | |
658 | 659 | | |
659 | 660 | | |
| 661 | + | |
| 662 | + | |
660 | 663 | | |
661 | 664 | | |
662 | 665 | | |
| |||
850 | 853 | | |
851 | 854 | | |
852 | 855 | | |
853 | | - | |
| 856 | + | |
854 | 857 | | |
855 | 858 | | |
856 | 859 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| |||
539 | 540 | | |
540 | 541 | | |
541 | 542 | | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
542 | 548 | | |
543 | 549 | | |
544 | 550 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
| 252 | + | |
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| |||
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
147 | 153 | | |
148 | 154 | | |
149 | 155 | | |
| |||
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
531 | 531 | | |
532 | 532 | | |
533 | 533 | | |
534 | | - | |
| 534 | + | |
| 535 | + | |
535 | 536 | | |
536 | | - | |
| 537 | + | |
537 | 538 | | |
538 | 539 | | |
539 | | - | |
| 540 | + | |
540 | 541 | | |
541 | 542 | | |
542 | | - | |
| 543 | + | |
543 | 544 | | |
544 | 545 | | |
545 | 546 | | |
| |||
0 commit comments