Details
-
Bug
-
Resolution: Fixed
-
High
-
2.5.13
-
None
-
None
Description
If Anonymous User don't have read permission for some Content, ezrecommendation:export:run may fail with
User does not have access to 'read' 'content' with: locationId '2'
Exception.
Steps to reproduce:
1. Clean installation of eZ Platform EE Demo 2.5
2. In parameters.yml set
env(RECOMMENDATION_CUSTOMER_ID): <your-customer-id> env(RECOMMENDATION_LICENSE_KEY): <your-license-key>
3. In BackOffice remove content/read permission from the Anonymous User
4. Run:
php bin/console ezrecommendation:export:run --contentTypeIdList=14 --webHook=https://admin.yoochoose.net/api/<your-customer-id>/items --hidden=1 --host=https://somepublicurl
Result
Exporting 1 content types 15:07:47 ERROR [ezrecommendation] Error while generating export: User does not have access to 'read' 'content' with: locationId '2' 15:07:47 ERROR [ezrecommendation] User does not have access to 'read' 'content' with: locationId '2' In LocationService.php line 193: User does not have access to 'read' 'content' with: locationId '2'
Expected result
The command completes successfully.