clowder-framework / clowder

A data management system that allows users to share, annotate, organize and analyze large collections of datasets. It provides support for extensible metadata annotation using JSON-LD and a distribute analytics event bus for automatic curation of uploaded data.
https://clowderframework.org/
University of Illinois/NCSA Open Source License
33 stars 17 forks source link

Ø character in preview file name causes upload to hang #433

Open ocaisa opened 8 months ago

ocaisa commented 8 months ago

Describe the bug We found out today is that if the filename of a preview file has a ø character it causes the upload of the preview file to hang with no output. This was with PyClowder 2.7.0.

I'd suspect this is also true for other utf8 characters.

To Reproduce Steps to reproduce the behavior:

  1. Try to upload a preview file using PyClowder which has a ø character in the filename

Expected behavior Accept any valid filename.

Additional context I was using the name of a dataset as the file name for video preview. The code already uses the pathvalidate module on that name. For now I've added a filter to remove any non-alphanumeric characters.