Adobe-Consulting-Services / acs-aem-commons

http://adobe-consulting-services.github.io/acs-aem-commons/
Apache License 2.0
453 stars 600 forks source link

Versioned ClientLibs generating different hash for same Content #2599

Open jolou1988 opened 3 years ago

jolou1988 commented 3 years ago

Required Information

Expected Behavior vs Actual Behavior

We have 4 publisher nodes all installed with the same code, and in the same versions, configured with version client libs as described here: https://adobe-consulting-services.github.io/acs-aem-commons/features/versioned-clientlibs/index.html One of the nodes, is generating different hash for several clientlibs than the other 3, that are all aligned. For instance: host:port/etc.clientlibs/xxx/components/zzz/clientlibs.min.ACSHASHa7910bc2bd04c97097d6aa1c083e3593.js host:port/etc.clientlibs/xxx/components/zzz/clientlibs.min.ACSHASH9abd08e19871938299cff2547cd933a2.js

We are expecting that all nodes generate same hash against exactly same content. We have MD5 Enforcement turned on, as we need to avoid CDN long term cache issues.

Steps to Reproduce

We could only replicate this on an environment with 4+ publisher nodes, regarding packages, any package with js files in clientlibs was triggering the issue .

davidjgonzalez commented 3 years ago

@jolou1988 can you download the file from one of the matches and the mismatch, and compare them in a diff tool. I suspect theyre somehow different between these Pub's.

If the files are infact different, this is working as expected. If not we need to investigate this further.

jolou1988 commented 3 years ago

Already did that, before open ticket, and they are absolutely the same.

YegorKozlov commented 3 years ago

Please check the configuration of HTML Library Manager. Is minification consistent across all publish instances? The md5 hash is a function of the file body and isMinified .

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.