episerver / Foundation

Foundation offers a starting point that is intuitive, well-structured and modular allowing developers to explore CMS, Commerce, Personalization, Search and Navigation, Data Platform and Experimentation.
https://docs.developers.optimizely.com/digital-experience-platform/docs/optimizely-foundation-demo-sites
Apache License 2.0
131 stars 135 forks source link

Commerce Catalog Fails to import on Linux OS #965

Open nptomlin opened 3 months ago

nptomlin commented 3 months ago

Describe the bug

Commerce Catalog Fails to import on Linux OS due to the casing of the zip file Foundation_Fashion.zip in the App_Data folder being different to the casing in the code in src/Foundation/Infrastructure/ContentInstaller.cs

            if (File.Exists(Path.Combine(_webHostEnvironment.ContentRootPath, "App_Data", "foundation_fashion.zip")))
            {
                CreateCatalog(new FileStream(Path.Combine(_webHostEnvironment.ContentRootPath, "App_Data", "foundation_fashion.zip"), FileMode.Open),
                    Path.Combine(_webHostEnvironment.ContentRootPath, "App_Data", "foundation_fashion.zip"));
            }

To Reproduce

Expected behavior Commerce Fashion catalog content to be imported.

Desktop (please complete the following information):