Closed
Description
This hardcoded path will cause issues when more than 1 Magento install is using the same server. It might be useful to make it unique per install, maybe using the domain URL or another unique value.
Preconditions (*)
- Magento Analytics installed
- More than one Magento instance on the same server
Steps to reproduce (*)
- Found static path $subdirectoryPath = 'analytics/'; in dir magento2/app/code/Magento/Analytics/Model/ExportDataHandler.php
- We used Magento 1st instance and made some minor code changes as per Hardcoded path causes collisions #29373 (comment) in CollectData.php and ExportDataHandler.php respectively to print the dir /private/tmp/analytics/tmp/.
- We used Magento 2nd instance and made same code changes in CollectData.php and ExportDataHandler.php respectively to print the dir /private/tmp/analytics/tmp/.
Issue: Both Magento instances are inserting the analytics data to the same path.
Expected result (*)
- Different Magento 2 installs will use different paths
Actual result (*)
- Different Magento 2 installs will use the same paths
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done