PDF viewer issue accessed over dispatcher, Works in author and publish | Community
Skip to main content
Level 2
April 6, 2022

PDF viewer issue accessed over dispatcher, Works in author and publish

  • April 6, 2022
  • 3 replies
  • 2769 views

PDF viewer issue accessed over dispatcher url or end url, Issue empty html tag, but works in author and publish

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Ravi_Pampana
Community Advisor
Community Advisor
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/.*' }

Level 2
April 6, 2022

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

 

Anish-Sinha
Adobe Employee
Adobe 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

Level 2
April 6, 2022

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

Anish-Sinha
Adobe Employee
Adobe 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.

ManviSharma
Adobe Employee
Adobe Employee
April 6, 2022
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.