Download Archive fails with flysystem

Created on 15 May 2025, 2 months ago

Problem/Motivation

When using flysystem and trying to use the 'Download Archive' functionality the following error is encountered
ValueError: ZipArchive::addFile(): Argument #1 ($filepath) cannot be empty in ZipArchive->addFile() (line 207 of modules/contrib/filebrowser/src/Controller/DefaultController.php).

The reason is in \Drupal\flysystem\FlysystemBridge function realpath() returns FALSE explicitly.

Is there a way to work around this limitation?

Steps to reproduce

Create a Directory listing with multiple files.
Go to listing page and select all files and click on 'Download Archive'.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

3.1

Component

Directory Listing Pages

Created by

πŸ‡ΊπŸ‡ΈUnited States zaurav McLean, VA

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

Comments & Activities

Production build 0.71.5 2024