duplicated assets in the database when importing from local storage #3652
Unanswered
kharon-nd
asked this question in
Error / Bug Report
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
When assets import from the Local File System than the duplicates of imported assets will created in database.
After importing new assets (for example an image) which didn't exist in database, database will create new record with wrong hash. And this asset (image) doesn't displayed on the page.
Steps to reproduce the behavior:
Expected behavior
Asset 's duplicates must not exist.
Host Info:
Additional context
If I understand correctly the request loads assets from database by hash. These hashes are the sha-1 hashes and they are generated from asset’s relative path.
Duplicated assets in the database differ only by hashes. These hashes are generated from the equivalent, but not the same paths. These paths differ by seperators.
Examples:
folder/file.png
hash ok, it worksfolder\file.png
wrong hash, broken linkBeta Was this translation helpful? Give feedback.
All reactions