PDF viewer issue accessed over dispatcher, Works in author and publish | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

12 replies

ManviSharma
Employee
April 6, 2022

please take a look at the documentation below and verify that your dispatcher is configured correctly. [1]

 

Also, please attempt to flush/clear your dispatcher. [2]

 

[1] https://experienceleague.adobe.com/docs/experience-manager-dispatcher/using/configuring/dispatcher-configuration.html?lang=en#configuring

 

[2]  https://experienceleague.adobe.com/docs/experience-manager-dispatcher/using/configuring/page-invalidate.html?lang=en#setting-up-aem-user-accounts

Translate
Level 2
April 6, 2022

We can access the pdf as the link and I tried out taking some snippets of pdf viewer and places in page component as baked in html markup with clientid it worked.

Translate
Anish-Sinha
Employee
April 6, 2022

Hi @mallipanchal007 ,

Does it work when you pass a query parameter in the browser url? If so, clear all the cache in the dispatcher and check. If not we can look at other things

Translate
Level 2
April 6, 2022

It's not the cache already tried with query param & cleared complete cache.

Translate
Anish-Sinha
Employee
April 6, 2022

The html code you are getting happens when the client ID is not correct. You must be using some domain for your dispatcher, did you register that domain to get a new client ID. For author and publish domain, it will be different and for dispatcher domain it will be different. Check if you are using same clientid that you generated. If so, generate a new one for your dispatcher domain and update, clear cache and re-try.

Translate
Ravi_Pampana
New Participant
April 6, 2022

Hi,

 

Dispatcher might be blocking pdf extension, you can check dispatcher log and see why it is being blocked

 

/var/logs/httpd/access_log

 

Usually dispatcher denies all urls, extensions, we need to add allow list based on the requirements like below under filters.any file

 

/0010 { /type "allow" /extension '(css|eot|gif|ico|jpeg|jpg|js|gif|pdf|png|svg|swf|ttf|woff|woff2|html)' /path '/content/dam/.*' }

Translate
Level 2
April 6, 2022

It's already allowed. I don't see the pdf viewer mark up itself

 

Translate