Problem/Motivation

From the phpstan baseline.

in the error handling for CKEditor5ImageController, sprintf is missing one of its arguments leading to a less than helpful error message. This seems to have been copied from other places with the same logic but somehow it as lost?

Steps to reproduce

outside of testing and static analysis this would be tricky to recreate as its in the lock handling.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

CommentFileSizeAuthor
#2 3264153-1.patch2.82 KBneclimdul

Comments

neclimdul created an issue. See original summary.

neclimdul’s picture

Status: Active » Needs review
StatusFileSize
new2.82 KB
wim leers’s picture

Status: Needs review » Reviewed & tested by the community

Seems like a safe & sound fix! Queued tests for 9.4.x and 9.3.x because CKEditor 5 is experimental and is getting every patch cherry-picked to both of those branches too.

  • catch committed 5ac3d36 on 10.0.x
    Issue #3264153 by neclimdul: Fix missing sprintf argument in...

  • catch committed 1e35a28 on 9.4.x
    Issue #3264153 by neclimdul: Fix missing sprintf argument in...

  • catch committed 9052837 on 9.3.x
    Issue #3264153 by neclimdul: Fix missing sprintf argument in...
catch’s picture

Version: 10.0.x-dev » 9.3.x-dev
Status: Reviewed & tested by the community » Fixed

The phpstan changes don't apply to the 9.4.x/9.3.x branches, but everything else does. Committed/pushed to 10.0.x, then to 9.4.x/9.3.x with that hunk removed. Thanks!

wim leers’s picture

Perfect, thanks @catch!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.