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

Versioning of clientlibs fails on 6.3 author #1186

Closed sivaisukapalli closed 6 years ago

sivaisukapalli commented 6 years ago

When we enable versioning on 6.3 author, we are able to see the clientlibs appended with md5. But if we try to edit any component, the overlay edit dialog doesn't close and throws a javascript console error ( can't clear history).

araraty commented 6 years ago

Hey Siva Is this 6.3 with no Hotfix or Service Pack? What version of ACS did you install?

sivaisukapalli commented 6 years ago

it's 6.3.0 without any SP or hotfix. And ACS 3.11.0

justinedelson commented 6 years ago

I cannot reproduce this with 6.3 GA and ACS Commons 3.12.0.

Please provide the precise steps to reproduce and the exact error message seen.

sivaisukapalli commented 6 years ago

this is the error I get. core.min.js:21709 Uncaught TypeError: Cannot read property 'clear' of null at ns.edit.Dialog.onSuccess (core.min.js:21709) at execute (core.min.js:20817) at HTMLDocument.handleDialogSuccess (core.min.js:20794) at HTMLDocument.dispatch (jquery.min.ACSHASHfb50358df4c2bd6aa6e1dd5b0d9b9d29.js:103) at HTMLDocument.k.handle (jquery.min.ACSHASHfb50358df4c2bd6aa6e1dd5b0d9b9d29.js:96) at Object.trigger (jquery.min.ACSHASHfb50358df4c2bd6aa6e1dd5b0d9b9d29.js:101) at HTMLDocument. (jquery.min.ACSHASHfb50358df4c2bd6aa6e1dd5b0d9b9d29.js:115) at Function.each (jquery.min.ACSHASHfb50358df4c2bd6aa6e1dd5b0d9b9d29.js:28) at c.fn.init.each (jquery.min.ACSHASHfb50358df4c2bd6aa6e1dd5b0d9b9d29.js:24) at c.fn.init.trigger (jquery.min.ACSHASHfb50358df4c2bd6aa6e1dd5b0d9b9d29.js:115) ns.edit.Dialog.onSuccess @ core.min.js:21709 execute @ core.min.js:20817

Steps to follow are

1) Install 3.11 ( or 3.12 of ACS commons) 2) create a node of rewrite Used the default node (/libs/cq/config/rewriter/default) to create http://localhost:4502/apps/XXXX/config/rewriter/versioned-clientlibs following is the json. md5 is being added but edit functionality is broken. ( http://localhost:4502/apps/XXXX/config/rewriter/versioned-clientlibs.json)
{ "jcr:primaryType": "nt:unstructured", "enabled": true, "serializerType": "htmlwriter", "transformerTypes": [ "linkchecker", "versioned-clientlibs" ], "order": "1", "contentTypes": [ "text/html" ], "generatorType": "htmlparser" }

justinedelson commented 6 years ago

There must be other steps you have done. This shows that minimization and MD5 enforcement have been enabled. It is also odd that you would see a line number of 21709 (or 20817) on core.min.js. This file is about 8500 lines minified. And it is obviously odd that this JavaScript request doesn't have the md5 in it.

Please start with a clean 6.3 instance and provide the full steps to reproduce.

sivaisukapalli commented 6 years ago

Thank you. Just checked a clean instance, doesn't have this issue. Have to figure out what in our code is causing this issue. Will look into it. Thanks.

justinedelson commented 6 years ago

ok. I'm going to close this. feel free to reopen if you figure out if it is an issue.