You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation does not properly normalize filenames with long file extensions (i.e. extensions with more than 4 characters). Example for this: base.geojson
When I upload this file, the generated ID for the filename will be base-geosjon instead of base.geojson. When downloading, the filename of the download however is the correct base.geojson. Shouldn't The FileNameNormalizer also cause the dash here?
The proposed solution would be to update the FILENAME_REGEX from:
FILENAME_REGEX=re.compile(r"^(.+)\.(\w{,4})$")
to:
FILENAME_REGEX=re.compile(r"^(.+)\.(\w+)$")
Additionally we should check if FileNameNormalizer is actually used, since it should've be applied in the filename for downloads.
The text was updated successfully, but these errors were encountered:
The current implementation does not properly normalize filenames with long file extensions (i.e. extensions with more than 4 characters). Example for this:
base.geojson
When I upload this file, the generated ID for the filename will be
base-geosjon
instead ofbase.geojson
. When downloading, the filename of the download however is the correctbase.geojson
. Shouldn't The FileNameNormalizer also cause the dash here?The proposed solution would be to update the FILENAME_REGEX from:
to:
Additionally we should check if FileNameNormalizer is actually used, since it should've be applied in the filename for downloads.
The text was updated successfully, but these errors were encountered: