Error when importing a file with an extension that is uppercase

Created on 10 May 2023, about 1 year ago
Updated 18 April 2024, about 2 months ago

Problem/Motivation

Some users try to import a file where the file extension has been made uppercase. This causes an error:

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "XLF" plugin does not exist. Valid plugin IDs for Drupal\tmgmt_file\Format\FormatManager are: html, xlf in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of /opt/app-root/src/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

Steps to reproduce

1. Create a new translation job
2. Download the created file.
3. Change the file extension from xlf to XLF
4. Try to import the file.

Proposed resolution

In the tmgmt_file.module, convert the file extension to lowercase.

Remaining tasks

Create patch to convert the file extension to lowercase.

User interface changes

API changes

Data model changes

✨ Feature request
Status

RTBC

Version

1.15

Component

Translator: File

Created by

πŸ‡ΊπŸ‡ΈUnited States scottcollier Austin, TX

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

Comments & Activities

Production build 0.69.0 2024