Wrong pattern in the views_data_export_file_access

Created on 7 September 2020, over 4 years ago
Updated 23 December 2024, 14 days ago

Hi,

I have noticed file is not downloaded, after debuggin found it was caused by the regex in the views_data_export_file_access
So here is the pattern:

      $pattern = '/\/\/views_data_export\/(?<uid>\d+)-\d+-.+\.csv$/';

but the file uri is like this:
private://views_data_export/view_name_view_display_id/uid-numbers/filename.extention

to match it we need the next regex:

    $pattern = '/\/\/views_data_export\/.*\/(?<uid>\d+)-\d+.+\.*$/';

Module version: 8.x-1.0

๐Ÿ› Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ฆUkraine gilmord ๐Ÿ‡บ๐Ÿ‡ฆUkraine

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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