Not compatible with Drupal 11

Created on 27 May 2025, about 2 months ago

Problem/Motivation

File validation changed in Drupal 11. This module in its current form is not compatible with Drupal 11.

https://www.drupal.org/docs/drupal-apis/entity-api/entity-validation-api... β†’

Steps to reproduce

- Enable the module
- Attempt to upload a file that already exists on the file system and you will get the following error message in Drupal 11.1:

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "file_temporary_validator_validate" plugin does not exist. Valid plugin IDs for Drupal\Core\Validation\ConstraintManager are: Callback, Blank, NotBlank, Email, Choice, Image, AddressFormat, Country, BlockContentEntityChanged, CKEditor5ToolbarItemDependencyConstraint, CKEditor5Element, UniqueLabelInList, StyleSensibleElement, CKEditor5MediaAndFilterSettingsInSync, CKEditor5ToolbarItemConditionsMet, CKEditor5EnabledConfigurablePlugins, SourceEditingPreventSelfXssConstraint, CKEditor5FundamentalCompatibility, CKEditor5ToolbarItem, SourceEditingRedundantTags, CommentName, ModerationState, CropTypeMachineNameValidation, CropTypeAspectRatioValidation, DateTimeFormat, EntityBrowserImageDimensions, QueueSize, FileSizeLimit, FileNameLength, FileEncoding, FileUriUnique, FileExtensionSecure, FileExtension, FileValidation, FileImageDimensions, FileIsImage, LinkExternalProtocols, LinkType, LinkAccess, LinkNotExistingInternal, MediaMappingsConstraint, oembed_resource, MenuSettings, PathAlias, RedirectSourceLinkType, SchedulerPublishOn, SchedulerUnpublishOn, SchedulerModeration, SchedulerUnPublishState, SchedulerPublishState, TaxonomyHierarchy, Ip, ProtectedUserField, UserName, UserCancelMethod, UserMailRequired, UserMailUnique, UserNameUnique, UsptoFilename, VideoEmbedValidation, MenuTreeHierarchy, PluginExists, EntityUntranslatableFields, ImmutableProperties, EntityHasField, Bundle, ValidReference, ReferenceAccess, EntityChanged, EntityType, ConfigExists, RequiredConfigDependencies, LangcodeRequiredIfTranslatableValues, ValidKeys, FullyValidatable, AllowedValues, Range, UniqueField, Uuid, CountryCode, UriHost, Length, Regex, Null, EntityBundleExists, PrimitiveType, ComplexData, Count, NotNull, ExtensionExists, ExtensionName, UniquePathAlias, ValidPath in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of /var/www/html/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

Proposed resolution

Code needs to be updated for Drupal 11

Remaining tasks

Convert #upload_validators to Drupal 11 compatible code.

User interface changes

None

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States pmagunia Philadelphia πŸ‡ΊπŸ‡Έ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024