Review 14.3 Merged

96591[BUGFIX] Always fix permissions of created files

Georg Ringer CR +2 V +2 Easy +29 −7 updated 10/10/26, 09:06

Commit message

FileNode::fixSelf() only corrected the permissions of a newly
created file if the node also defined a target content. Writing
the content and fixing the permissions are two unrelated steps,
so they are decoupled now and permissions are fixed for every
successfully created file.

The unit test for the "file already exists" guard of createFile()
is corrected along the way: it expected exception code 1366398198
thrown by getRelativePathBelowSiteRoot() and therefore never
reached the guard it is named after.

Review

  • Code review CR +2 Done
    • Georg Ringer +2
  • Verified V +2 Done
    • Georg Ringer +2
    • core-ci +1 CI

Issues 1

Files 2

Review log 34

  1. Georg Ringer commented on patch set 1 10/10/26, 08:53

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 10/10/26, 09:03 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/110775

  3. Georg Ringer voted on patch set 1 CR +2 V +2 10/10/26, 09:06

  4. Georg Ringer merged patch set 2 10/10/26, 09:06