Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PIM / DAM : SVG Upload Error but an assets without category link gets created #1222

Open
rmoecklideveloper opened this issue Apr 16, 2024 · 1 comment

Comments

@rmoecklideveloper
Copy link

PIM 1.11.26 / atrocore 1.9.15
Upload an file.svg (Version 1.1) creates an error. After searching for it it got somehow created, shows up quickly than disappears.
Looking into the database, asset is there, imagemagick can't process it I guess, No Entry in asset_category_asset table.
Manually add the row in asset_category_asset talbe, all good, despite there is no preview.

In my opinion, if asset can't be processed for preview, add the asset anyway totally
or totally deny it, but don't do it half ;-)

[2024-04-16T11:17:59.865991+00:00] Log.ERROR: API [POST]:/api/v1/:controller, Params:Array ( [controller] => Asset ) , InputData: {"type":["Icon"],"libraryName":"Default Library","libraryId":"1","fileId":"y661e5e4b11913eb8","name":"snapfix.svg","isActive":true,"private":false,"parentsIds":[],"parentsNames":{},"description":null,"descriptionFrCh":null,"descriptionItCh":null,"tags":[],"tagsFrCh":[],"tagsItCh":[],"afterSaveMessage":"","ProductAsset__scope":"Global","ProductAsset__channel":"","fileName":"snapfix.svg","_prev":{"libraryName":"Default Library","libraryId":"1","isActive":true,"private":false,"afterSaveMessage":"","ProductAsset__scope":"Global","ProductAsset__channel":""},"_silentMode":true} - unable to open file /tmp/magick-kNCdwYGBnHI7CcQru5cHmpF-wxWkW2ec': No such file or directory @ error/constitute.c/ReadImage/614 [] []
[2024-04-16T11:17:59.867847+00:00] Log.ERROR: Display Error: unable to open file /tmp/magick-kNCdwYGBnHI7CcQru5cHmpF-wxWkW2ec': No such file or directory @ error/constitute.c/ReadImage/614, Code: 430 URL: /api/v1/Asset [] []
paket

@AnnZast
Copy link

AnnZast commented Apr 17, 2024

Hello
Please, update your environment to Core 1.10.0. We made deep refactoring of the mechanisms for working with files. Entities Asset, Attachment, AssetType, AssetCategory, Library have been removed. These API endpoint were removed too. Entities File, FileType, Folder, Storage have been added instead. Data was migrated into new entities. Also relationship entities such as ProductAsset has been changed to ProductFile (CategoryAsset -> CategoryFile, etc).

Check if your issue is still relevant. There is no preview for svg files yet, but they can be stored in the same way as other file types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants