Skip to content

Google takeout migration tool not working for long filenames #1559

@johnhelt

Description

@johnhelt

Describe the bug

The current pattern is to use a regex that looks for ".supplemental-metadata.json" or something like that (#1441), but for long filenames, google somehow crops the filename to 51 characters including .json. This means the migration tool does not work for filenames that exceed 24 characters (+27 for the suffix), as far as I understand it.

Steps To Reproduce

Here's some examples of json files from a recent google takeout:

./Screenshot_2017-07-05-10-05-26.png.supplementa.json
./Screenshot_20241227_105539_Edge.jpg.supplement.json
./Screenshot_20220207_102421_com.snapchat.androi.json
./Screenshot_2016-07-09-18-01-30.png.supplementa.json
./Screenshot_2017-06-01-16-23-24.png.supplementa.json
./Screenshot_2018-01-12-21-49-38.png.supplementa.json
./Screenshot_2017-04-06-20-48-54.png.supplementa.json
./D7157814-D2D5-4A62-AFCE-9CF465CB7D66.jpeg.supp.json

the files are all cropped.

Platform

- OS: Docker (nextcloud:31.0.7-fpm)
- Browser:
- Memories Version: 7.6.1
- Nextcloud Version: 31.0.7
- PHP Version: 8.3.23

Screenshots

No response

Additional context

  • Any errors in the JS console?
  • Any errors in the Nextcloud server logs?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions