Export is not generated with PhpSpreadsheet lib >1.12.0

Created on 17 May 2021, over 3 years ago
Updated 22 May 2023, over 1 year ago

Problem/Motivation

The module is not compatible with PhpSpreadsheet library version > 1.12.0
tested with versions 1.13.0 to 1.17.1 (current).

When trying to export, it either don't generate the file or downloads a corrupted one. It doen't raise any drupal or php error.

Steps to reproduce

Install the module (dev or 8.x-1.0) attempts to export submissions.

Proposed resolution

A workarround is to install phpspreadsheet while constraining the version prior to install the module.
composer require phpoffice/phpspreadsheet:1.12.0

As lib version 1.16.0 fixes a CVE (that seems mitigated in this case) fixing incompatibility that start at 1.13.0 would be the preferable fix.

Assuming the CVE is really irrelevant, constraining dependencies in module's composer.json, could help as a quick fix but requires to make sure of it.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇫🇷France ericdsd France

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024