Closed (fixed)
Project:
Drupal core
Version:
8.8.x-dev
Component:
file system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
30 Dec 2018 at 00:14 UTC
Updated:
11 Jun 2025 at 09:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
berdirThis is unblocked now.
Comment #3
berdirReplaced all usages that I found of "FILE_EXISTS" with "FileSystemInterface::EXISTS", except those in file.inc on the deprecated functions.
Comment #4
jibranApplied the patch locally and had a look and only found contrib usages. We should update the original change record https://www.drupal.org/node/3006851.
Comment #5
kim.pepperI updated the change record to list the constant changes.
Comment #8
berdirMissed when this conflicted, rerolled.
Change record was already updated, so removing that tag. This just does the rename, it doesn't introduce anything new.
Comment #9
berdirLots of conflicts but all pretty simple to resolve.
Comment #10
berdirComment #11
mikelutzAll looks good, only a few documentation nits.
I realize you didn't change this, but this doesn't look right.. EXISTS_REPLACE should replace, EXISTS_ERROR should throw an error, this line conflicts with the
@param int $replacedocumentation below..nit: over 80 characters
nit: over 80 characters.
nit: 80 characters
nit: 80 characters
nit: 80 characters
nit: 80 characters
Drupal\jsonapi\Controller\TemporaryJsonapiFileFieldUploader:190
Also, what are we doing with FILE_STATUS_PERMANENT? It's not deprecated or on the interface yet. Is there another issue for that one?
Comment #12
kim.pepperFixes for #11
See #3021833: Move FILE_STATUS_PERMANENT to \Drupal\file\FileInterface
Comment #13
mikelutznit: looks like two more 80+ char comments, I must have missed in my initial review. :-/
Comment #14
tinko commentedHello,
I've added the changes for comments to the previous patch.
:)
Comment #15
kim.pepperMissing interdiff for #14
Comment #16
tinko commentedThank you, kim.pepper. I'll try to not forget it next time. :)
Comment #17
kim.pepperNo worries! Thanks for your patch!
Comment #18
mikelutzLooks good. You even found one other comment to fix which I had missed!
Comment #19
alexpottCommitted 9aa7d13c9f and pushed to 8.8.x. Thanks!