The core of the e-commerce part of the overall solution. This is an ecommerce shopping cart solution built on top of the DNN (DotNetNuke) CMS. Anyone can do commerce online now!
It's not 100% certain if this is only limited to Microsoft Azure, but this is the only known environment where this is occurring. It's not "traditional" Azure either at the moment, but in Azure VMs.
When you upload a primary product image, the requisite folder is created. What's supposed to happen next is this:
Create a small child folder in the same product folder.
Add a dynamically-created small image to that folder with the same file name as the original image.
Create a medium child folder in the same product folder.
Add a dynamically-created medium image to that folder with the same file name as the original image.
Instead of those steps occurring, the process does not proceed past Step 1. Instead, a suppressed "file already exists" error occurs. This also happens when uploading images in the variants view and when importing images using the XLS import feature.
Reported Software Versions
DNN: 09.01.01
Hotcakes: 03.02.03
Hosting Environment: Azure VM, Windows Server 2008 R2 (all updates applied)
To Reproduce
Steps to reproduce the behavior:
Install DNN & HCC in an Azure VM environment.
Create a product.
Upload a product image to the product.
Click save.
Expected behavior
The primary image is uploaded and save, and the small and medium folders are each created with their respective image saved to each folder. The respective images are seen in their respective contexts and views.
Actual behavior
The primary image is saved and the small folder is created. Nothing else occurs and the UI doesn't even show the primary image. The other images are not saved and the medium folder is never created. A suppressed error occurs about the file already existing.
System.ArgumentException:
Unable to create temporary file: {0}The file exists. at Hotcakes.Web.TempFiles.GetTemporaryFileInfo()
at Hotcakes.Web.Images.ShrinkImageFileOnDisk(String originalFile, String newFileName, Int32 maxWidth, Int32 maxHeight)
at Hotcakes.Commerce.Utilities.ImageProcessing.ShrinkImage(String originalFile, String outputDirectory, Int32 maxWidth, Int32 maxHeight)
Describe the bug
It's not 100% certain if this is only limited to Microsoft Azure, but this is the only known environment where this is occurring. It's not "traditional" Azure either at the moment, but in Azure VMs.
When you upload a primary product image, the requisite folder is created. What's supposed to happen next is this:
small
child folder in the same product folder.medium
child folder in the same product folder.Instead of those steps occurring, the process does not proceed past Step 1. Instead, a suppressed "file already exists" error occurs. This also happens when uploading images in the variants view and when importing images using the XLS import feature.
Reported Software Versions
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The primary image is uploaded and save, and the
small
andmedium
folders are each created with their respective image saved to each folder. The respective images are seen in their respective contexts and views.Actual behavior
The primary image is saved and the
small
folder is created. Nothing else occurs and the UI doesn't even show the primary image. The other images are not saved and themedium
folder is never created. A suppressed error occurs about the file already existing.