This bundle adds full integration between Pimcore and CI-HUB Connector. Now you can add, delete and download all assets, lock and unlock, get all versions for specified asset and much more.
We use inDesign to connect to Pimcore throw CI-HUB.
When we list images from folder or want download image to inDesign
we see CI-HUB from inDesign try to make OPTIONS request to Pimcore:
[01/Mar/2024:10:11:49 +0100] "OPTIONS /datahub/rest/jysk/asset/download?id=25&thumbnail=galleryThumbnail HTTP/1.1" 405
Pimcore version(s) affected
11
Description
We use inDesign to connect to Pimcore throw CI-HUB. When we list images from folder or want download image to inDesign
we see CI-HUB from inDesign try to make OPTIONS request to Pimcore: [01/Mar/2024:10:11:49 +0100] "OPTIONS /datahub/rest/jysk/asset/download?id=25&thumbnail=galleryThumbnail HTTP/1.1" 405
but we get error that route is not defined.
How to reproduce
Test the software
Possible Solution
Line 333: #[Route('/download', name: 'download', methods: ['GET'])] As we can see it does not allow OPTIONS methods
if OPTIONS request the it should return 204 Respons. It does not because in Parent class BaseEndpointController __constructor we got
$this->user = $this->authManager->authenticate();
and this code throw error
I do not understand why OPTIONS request need authentication - it should not. I will prepare fix for it.
Additional Context
No response