Adobe-Consulting-Services / acs-aem-commons

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

ACS AEM reports works on author instance but not publisher #2789

Open stiegjo opened 2 years ago

stiegjo commented 2 years ago

Required Information

Version: AEM 6.5.10 and ACS AEM Commons 5.0.6

Expected Behavior

When we run the ACS AEM report on the Author instance, it runs fine.

Actual Behavior

When we run it on the Publish instance, it fails and we get the following error:

18.02.2022 12:26:29.772 ERROR [192.150.9.200 [1645205186151] GET /var/acs-commons/reports/users-on-jhi-manulife-sites/jcr:content.report.csv HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl Writer has already been closed.

Steps to Reproduce

Log into /var/acs-commons/reports/users-on-jhi-manulife-sites.htm and execute report

Links

https://adobe-consulting-services.github.io/acs-aem-commons/features/report-builder/index.html

image

stiegjo commented 2 years ago

Also we see the following error on the client side. Is there a way to enable CORS for just ACS AEM Commons on the publisher?

Ensure CORS response header values are valid A cross-origin resource sharing (CORS) request was blocked because of invalid or missing response headers of the request or the associated preflight request .