since ‎11-01-2019
Online
Mayukh007
Level 2
Re: ACS Common Dispatcher Flush agent not working
Avatar

Mayukh007

Mayukh007
- Adobe Experience Manager
HI Maximilian_Voss, looks like the issue with French pages are that I was adding them with English page name but for some reason looks like the cache getting cleared if I add the pages in Dispatcher Flush page with French Title. The pages are getting stored in Dispatcher cache with French Title...Not sure what changed but it was always working with page name and there we were using same page name for both En and Fr....!!

Views

98

Likes

0

Replies

0
Re: ACS Common Dispatcher Flush agent not working
Avatar

Mayukh007

Mayukh007
- Adobe Experience Manager
each farm file have their own vhost, so french ones goes to french vhost and same for english farm.

Views

126

Likes

0

Replies

0
Re: ACS Common Dispatcher Flush agent not working
Avatar

Mayukh007

Mayukh007
- Adobe Experience Manager
They are running from different vhosts. Stat level is 5 in english farm file and 3 in french farm file.

Views

139

Likes

0

Replies

0
ACS Common Dispatcher Flush agent not working
Avatar

Mayukh007

Mayukh007
- Adobe Experience Manager
Hi, We are using ACS common (4.0.0) Dispatcher Flush page to flush dispatcher cache as scheduled job using Jenkins.Our site have English and French content pages. Looks like French cached pages are not getting deleted... Anyone seen these kind of issue before..?

Views

156

Likes

0

Replies

9
Re: CUG pages are getting cached in Dispatcher
Avatar

Mayukh007

Mayukh007
- Adobe Experience Manager
Thank you for the solution @sureshd71454102 ....that works like charm...should have thought of that.. what I think happening for auth_checker is a design flaw...Dispatcher is creating cache file first and then doing validation...which to me should be otherway... But yes, this will work... Thanks again.

Views

67

Likes

0

Replies

0
Re: CUG pages are getting cached in Dispatcher
Avatar

Mayukh007

Mayukh007
- Adobe Experience Manager
I am still clueless why the "/auth_checker" is forcing to create dispatcher cache for CUG page. My CUG page is not in same filter where the "/auth_checker" filters are set...Does "/auth_checker" forces to create dispatcher cache if we are using same farm file where "/auth_checker" is implemented..? I went through these articles:https://www.argildx.com/technology/permission-sensitive-caching-psc/https://helpx.adobe.com/ca/experience-manager/kb/PSCachingDelivery.html#samplecode And as per this "/a...

Views

80

Like

1

Replies

0
Re: CUG pages are getting cached in Dispatcher
Avatar

Mayukh007

Mayukh007
- Adobe Experience Manager
No, I think I posted in correct post in response to your question. "Cache-Control" is set in 2 of our custom farm files but it have no "public" or "always' in it as I posted above... Even though i remove "Cache-Control" from there, it is still same behaviour.But eventually I think I figured out where it is stemming from. We are using "/auth_checker" in the farm file and commenting that one out resolving the issue...Need to dig more now...

Views

94

Like

1

Replies

1
Re: CUG pages are getting cached in Dispatcher
Avatar

Mayukh007

Mayukh007
- Adobe Experience Manager
Hmm...even after remove entire /header section it still creates cache file for CUG page. It just stopped creating .h (header cache files) files. So issue exists...

Views

106

Like

1

Replies

3
Re: CUG pages are getting cached in Dispatcher
Avatar

Mayukh007

Mayukh007
- Adobe Experience Manager
Thank you @shelly-goel for your pointer. I checked one of the domain where it is always creating cache, and I found this in the farm file of that domain: ## Cache response headers next to a cached file. On the first request to## an uncached resource, all headers matching one of the values found here## are stored in a separate file, next to the cache file. On subsequent## requests to the cached resource, the stored headers are added to the## response.## Note, that file globbing characters are not...

Views

119

Like

1

Replies

4
Re: Security concern for AEM pages
Avatar

Mayukh007

Mayukh007
- Adobe Experience Manager
I tried that option by adding in Dispatcher rewrite, but did not fix the issue which I think is because the Python script is running from my local and it just calls for different .JSON files from that script and fetch data. Dispatcher have no information of that script and in access_log, I dont see any .py file information. We cant stop JSON to get rendered as we use .JSON outputs....I was thinking if there is a way to stop outputting JCR properties like CreateBy or ModifiedBy..!!

Views

75

Likes

0

Replies

0
Re: Security concern for AEM pages
Avatar

Mayukh007

Mayukh007
- Adobe Experience Manager
Thank you for the solution Suresh. In our project I still need to expose AEM content and asssets as JSON for other applications to consume. Can you please provide me the rule just to block the Python script to crawl..?

Views

102

Likes

0

Replies

0
Re: CUG pages are getting cached in Dispatcher
Avatar

Mayukh007

Mayukh007
- Adobe Experience Manager
Jörg_Hoh , I am not trying to cache CUG pages. My expectation is CUG pages by default never cache in Dispatcher, otherwise if it gets cached into Dispatcher the Authentication will not happen for next user onwards as Dispatcher will serve the page without checking the Authentication...My problem is my CUG pages getting cached and I dont want that to happen.

Views

147

Like

1

Replies

0
Re: CUG pages are getting cached in Dispatcher
Avatar

Mayukh007

Mayukh007
- Adobe Experience Manager
I enabled Debug mode in dispatcher and ran the login steps. Here is what I see for my "cugpage" which is a CUG page and Dispatcher by default should not try to create cache for this domain/cugpage.htmlxxxxxx :/mnt/var/log/httpd tail -f *.* | grep "cugpage"[Thu Dec 03 18:28:29 2020] [D] [pid 10155] checking [/content/consumer-portal/en_CA/cugpage.html][Thu Dec 03 18:28:29 2020] [D] [pid 10155] cachefile does not exist: /mnt/var/www/html/content/consumer-portal/en_CA/cugpage.html[Thu Dec 03 18:28:...

Views

157

Like

1

Replies

0
Re: CUG pages are getting cached in Dispatcher
Avatar

Mayukh007

Mayukh007
- Adobe Experience Manager
HI Suresh, We allow everything for Dispatcher to cache. But as per CUG documentation, CUG pages are not cached by default unless we set "allowAuthorized 1" which makes sense as I dont know what will be path of CUG page in advance, any page can or can not be CUG set by Content Author on the Authoring Production. The only place we have "allowAuthorized" set as 1 is in Author farm files.

Views

168

Like

1

Replies

0
Re: CUG pages are getting cached in Dispatcher
Avatar

Mayukh007

Mayukh007
- Adobe Experience Manager
It is caching any CUG page I am accessing in the site, not the login page. I can provide detail on my caching rules if you can point me to what you want me to look at..

Views

186

Like

1

Replies

0
Security concern for AEM pages
Avatar

Mayukh007

Mayukh007
- Adobe Experience Manager
We are flagged by Security team for below issue. They have created a Python script which can be used to crawl any of our sites and fetch JCR data like UserID. Our sites are public sites.Here is summary of the test, details of the test is attached here. The Python project is in GitHub for your test/reference.https://github.com/ilatypov/aem-hacker/blob/master/aem_slurper.py$ time python3 aem_slurper.py www.manulifebank.ca 2>&1 | tee manulifebank.txtConnecting to www.manulifebank.ca...2020-09-28 09...

Views

128

Likes

0

Replies

4
CUG pages are getting cached in Dispatcher
Avatar

Mayukh007

Mayukh007
- Adobe Experience Manager
HI, We are at AEM 6.5.5, running deployments using Adobe Cloud Manager.We are trying to implement CUG (Closed User Group) but I am seeing 2 new issues which I did not see when I first tried CUG 8/9 months back. 1. Could not login to CUG page using Dispatcher URL and was getting error at "/libs/granite/core/content/login.html/j_security_check".Had to add this rule in Dispatcher to get this resolved. File name - publish-filter-after.anyRule - /0065 { /type "allow" /glob "*j_security_check*" } 2. N...

Views

202

Likes

0

Replies

16
Re: Use Azure Blob storage to store DAM Assets and access...
Avatar

Mayukh007

Mayukh007
- Adobe Experience Manager
I still see issue, although my local instance is up now and I no longer see any error..But I dont see any asset getting pushed to Azure as well...debugging it now.

Views

56

Likes

0

Replies

0
Re: Use Azure Blob storage to store DAM Assets and access...
Avatar

Mayukh007

Mayukh007
- Adobe Experience Manager
So I found the issue, it was due to SSL cert. So i added the Azure cert in keystore and I no longer see the error in error.log and my local is up now. But there is nothing in Azure as well...I dont see my DAM asset or the new container I added...Am I missing something ..?

Views

90

Likes

0

Replies

0
Re: Use Azure Blob storage to store DAM Assets and access...
Avatar

Mayukh007

Mayukh007
- Adobe Experience Manager
Hi Bhuwan, I tried to run the commands to check the connection as mentioned in the post, but getting below error: macC02TG0VXH03Q:Documents mukmayu$ java -jar /Users/mukmayu/Documents/oak-run-1.6.6.jar console /Users/mukmayu/All_Documents/AEM4Azure/AEM6.5/Azure/Author/crx-quickstart/repository/segmentstore --azureds=/Users/mukmayu/All_Documents/AEM4Azure/AEM6.5/Azure/Author/crx-quickstart/install/org.apache.jackrabbit.oak.plugins.blob.datastore.AzureDataStore.configApache Jackrabbit Oak 1.6.6Exc...

Views

109

Likes

0

Replies

0
Use Azure Blob storage to store DAM Assets and access from AEM
Avatar

Mayukh007

Mayukh007
- Adobe Experience Manager
HI, We are in AEM 6.5.5 and need to use Azure Blob storage to store some of our heavy assets (videos mostly) and then reference it from DAM so that we can use features of DAM like security/permissions etc. We were following this article - https://experienceleague.adobe.com/docs/experience-manager-65/deploying/deploying/data-store-config.html?lang=en#azure-data-store Also this solution we need for one of our sites residing in same AEM instance, but not for all.I have gone through this video and t...

Views

157

Likes

0

Replies

6
Re: How to create Symbolic links for Dispatcher
Avatar

Mayukh007

Mayukh007
- Adobe Experience Manager
I can use same command in my terminal do create locally as well...So that should work for me as well.. https://apple.stackexchange.com/questions/115646/how-can-i-create-a-symbolic-link-in-terminal

Views

176

Likes

0

Replies

0
How to create Symbolic links for Dispatcher
Avatar

Mayukh007

Mayukh007
- Adobe Experience Manager
HI, I need to create Symlinks in my Enabled farm and vhost folder as part of my code repository for Cloud Manager.Previously I used to create them after deployment right in the AEM box by issuing commands: sudo /bin/ln -s /etc/httpd/conf.d/available_vhosts/* /etc/httpd/conf.d/enabled_vhosts/sudo /bin/ln -s /etc/httpd/conf.dispatcher.d/available_farms/* /etc/httpd/conf.dispatcher.d/enabled_farms/ But as per Cloud Manager requirement, I need to create and push the Symlinks as part of the code Repo...

Views

183

Likes

0

Replies

1
Re: Dispatcher Clear cache cURL no longer works.
Avatar

Mayukh007

Mayukh007
- Adobe Experience Manager
Added this in publish and author invalidate any file /1{/glob "*.*"/type "allow"}

Views

120

Like

1

Replies

0
Re: Dispatcher Clear cache cURL no longer works.
Avatar

Mayukh007

Mayukh007
- Adobe Experience Manager
Issue resolved...Had to add allow parameters in publish invalidate any file.

Views

131

Likes

0

Replies

0
Dispatcher Clear cache cURL no longer works.
Avatar

Mayukh007

Mayukh007
- Adobe Experience Manager
Hi, We use Curl to clear dispatcher cache. We issue command to ELB and ELB does the rest. curl -H "CQ-Action: Delete" -H "CQ-Handle: /content/" -H "CQ-Path: /content/" -H "Content-Length: 0" -H "Content-Type: application/octet-stream" -H "Host:www-aem-dev.manulife.ca" http://manulife-dev65-2019april28-545949682.ca-central-1.elb.amazonaws.com/dispatcher/invalidate.cache I can run it even from my local Terminal as this doe snot need any authentication. Now we are moving to Cloud Manager and sudden...

Views

167

Likes

0

Replies

3
Re: cq:PageContent not getting retrieved
Avatar

Mayukh007

Mayukh007
- Adobe Experience Manager
yes, the custom index did not have the path we were searching in that query. Will check by adding that in that custom query. Currently this SQL2 query not using any custom index.

Views

169

Likes

0

Replies

0
Re: cq:PageContent not getting retrieved
Avatar

Mayukh007

Mayukh007
- Adobe Experience Manager
Thank you again for the suggestions. I actually found that the issue is in new custom oak index we added...So I think we are good now, I need to debug the index to find root cause.

Views

189

Likes

0

Replies

0
Re: cq:PageContent not getting retrieved
Avatar

Mayukh007

Mayukh007
- Adobe Experience Manager
Thank you for the suggestion.I tried above steps but still clueless. One more thing, it only does not work for under /content/experience-fragment folder.So here is what is working and what is not:select * from [cq:PageContent] as data WHERE ISDESCENDANTNODE(data,'/content/experience-fragments/') = no resultselect * from [nt:unstructured] as data WHERE ISDESCENDANTNODE(data,'/content/experience-fragments/') = gives resultselect * from [cq:PageContent] as data WHERE ISDESCENDANTNODE(data,'/content...

Views

278

Likes

0

Replies

0
Re: cq:PageContent not getting retrieved
Avatar

Mayukh007

Mayukh007
- Adobe Experience Manager
we are in AEM 6.5.5

Views

338

Likes

0

Replies

0