uncompress(): Return value must be of type array, null returned

Created on 22 November 2024, 5 months ago

Problem/Motivation

the error Drupal\\viewsreference\\ViewsReferenceCompression::uncompress(): Return value must be of type array, null returned is thrown when someone provides a non compressed query string

Steps to reproduce

GET parameter e.g. https://www.website.com/viewnode?page=1&viewsreference%5Bcompressed%5D=-1/%2A%2A/OR/%2A%2A/1%3D1%29/%2A%2A/AND/%2A%2A/COALESCE%28ASCII%28SUBSTR%28CAST%28%28VERSION%28%29%29AS/%2A%2A/VARCHAR%288000%29%29%2C1%2C1%29%29%2C0%29%3E255

Proposed resolution

return an empty array instead of null or raise an error

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇩🇪Germany sleitner

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024