Feedback
Did this article resolve your question/issue?

   

Article

Images inserted in content are not displayed correctly.

« Go Back

Information

 
TitleImages inserted in content are not displayed correctly.
URL NameImages-inserted-in-content-are-not-displayed-correctly
Article Number000188065
EnvironmentProduct: Sitefinity
Version: 7.2
OS: All
Database: Microsoft SQL Server 2012 SP2
Question/Problem Description
Images inserted in content are not displayed correctly.
Steps to Reproduce
Clarifying Information

In Sitefinity Build 7.2.5320.0 (Hotfix2) we introduced a change to the thumbnails  hash algorithm by switching it from MD5 to SHA1. This breaks the thumbnails in cases where  custom crop size is used and EnableImageUrlSignatureTitle is set to true in the configurations.

When upgrading from version lower than 7.2 Hotfix 2, the hash algorithm will be set to the old format MD5 and the thumbnails will be resolved properly.

New installations of 7.2 and later will use the SHA1 algorithm.

Error Message
Defect Number
Enhancement Number
Cause

In Sitefinity Build 7.2.5320.0 (Hotfix2) we introduced a change to the thumbnails  hash algorithm by switching it from MD5 to SHA1.

Resolution

From internal build 7.3.5613 configuration for the hash algorithms is supported.  Switching between them is done through the backend configurations(Settings -> Advanced -> Libraries -> Images -> Image URL Signature hash algorithm)  or by editing the LibrariesConfig.config ( App_Data/Sitefinity/Configuration).

If Images are generated with one of the hash format and then the algorithm is switched the thumbnails will be broken. In this case,  recreate your thumbnails or set enableMultipleHashAlgorithmsSupport =”true” that will check if the hash is valid for both algorithms SHA1 and MD5.

There is option to use both the algorithms in case of thumbnails generated between 7.2 Hotfix 2 and 7.3 release.

The option is not visible in the UI and can be applied  only through LibrariesConfig.config ( App_Data/Sitefinity/Configuration) by setting enableMultipleHashAlgorithmsSupport  =”true”

In this case the thumbnails do not need to be recreated. 

Workaround
Notes
Last Modified Date7/18/2016 8:39 PM
Attachment 
Files
Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.