since ‎04-01-2016
‎28-05-2020
Himanshu_Singhal
MVP
Re: Caching Image Renditions in Dispatcher Himanshu_Singhal - Adobe Experience Manager
Hi @sreekalyani You can try the following approach for Image rendition caching.http://aempodcast.com/2017/assets/asset-rendition-caching-problem-solution/#.XsevrhMzbxU Thanks,Himanshu Singhal
1185
Views
1
Like
0
Answers
Re: AEM workflow OR Split control flow issues Himanshu_Singhal - Adobe Experience Manager
Hi @jezwn The logic of OR split works usual way as described by @Arun_Patidar. And, as I see your workflow, for approve/reject - you've used participant step. So, it seems like once the operation is done by "Author Admin Approval" - it's going to either Approve or Reject based on the selection and next step would be to go to Approver or Rejector inbox to proceed to next steps of workflow. But, if you're would like let's say. "Directly receive email" after rejection then in that case, you need do...
1137
Views
1
Like
0
Answers
.model.json not showing component JSON at page level but only at specific component node level Himanshu_Singhal - Adobe Experience Manager
Hi, I've written JSON exporter with Sling model to expose it as JSON. When I try to drag the component on page and then check it with .model.json - it doesn't show the component JSON. But, when I get to specific node path e.g. .model.json then it returns the component JSON. Any idea why it's happening like that? Best regards,Himanshu Singhal
1743
Views
0
Likes
2
Answers and Comments
S3 as Datastore for AEM with other cloud provider (Not AWS) Himanshu_Singhal - Adobe Experience Manager
Hi, I'm trying setup AEM datastore on S3. Not using S3 from AWS but from other cloud provider (https://www.exoscale.com/). Is it possible to have the integration with any S3 storage or specifically has to be from AWS? As per the official document from Adobe, it doesn't say anything except AWS S3. Also, there's no property in config where domain can be provided. (https://docs.adobe.com/content/help/en/experience-manager-65/deploying/deploying/data-store-config.html#amazon-s-data-store)Please let ...
916
Views
0
Likes
1
Answers and Comments
Re: AEM6.4 - org.apache.sling.commons.scheduler Cron error Himanshu_Singhal - Adobe Experience Manager
Hi,0,15,30,45 8-10 * * * ? - it's the valid expression but not 0,15,30,45 8-10 * * *Just checked it out there Free Online Cron Expression Generator and Describer - FreeFormatter.com
706
Views
1
Like
0
Answers
Re: AEM always returns 200 status code. Himanshu_Singhal - Adobe Experience Manager
Could you please try increasing the buffer size to lets say 10000 and try again?
1182
Views
0
Likes
0
Answers
Re: AEM always returns 200 status code. Himanshu_Singhal - Adobe Experience Manager
Hi janellic4,While saving the configuration, it displays the error but it saves the updated value. Try opening the value again and it should show updated "Response Buffer Size". Even after increasing the response buffer size, do you still get the 200 status code?Do you get any error as well in logs?
1195
Views
0
Likes
0
Answers
Re: AEM always returns 200 status code. Himanshu_Singhal - Adobe Experience Manager
That could be due to Response buffer size as well that you always get 200 instead of any other error code. If the rendered response buffer is more than defined one, then server send response back to browser in chunks and once it's sends a part of response, no matter if page works or not, if always return 200.You can try increasing the buffer size by going into configuration:Apache Felix Jetty Based Http Service"Response Buffer Size"Increase the size and if page throws error then it should get di...
1203
Views
0
Likes
0
Answers
Re: Problem implementing Custom Resource Provider Himanshu_Singhal - Adobe Experience Manager
AEM 6.3.2 and Touch UI
3010
Views
0
Likes
0
Replies
Re: User Last Login Date and No.of Logins of user Himanshu_Singhal - Adobe Experience Manager
It won't impact the existing AEM default login functionality. All you need to do is extends the AuthenticationHandler and override the method extractCredentials and write the logic the persist the login count for user. For rest of the method, just return the standard as it's their OOTB. E.g. acs-aem-samples/SampleLoginHookAuthenticationHandler.java at master · Adobe-Consulting-Services/acs-aem-samples · GitHub @Reference(target = "(service.pid=com.day.crx.security.token.impl.impl.TokenAuthentica...
1506
Views
0
Likes
0
Answers
Re: User Last Login Date and No.of Logins of user Himanshu_Singhal - Adobe Experience Manager
There's a OOTB report to generate Users report but it doesn't have information related to login or number of times login in options. And, I don't think there's such option available OOTB to get the such details.For that, you can write custom code (a servlet) to get last login (date/time) for user. It's stored under path /home/users//.tokens/ - node name is the last login date and time. However, it's just last login information. You still won't find number of times user logged in information. For...
1319
Views
1
Like
0
Answers
Re: Delete multiple pages in AEM 6.3 following a naming pattern Himanshu_Singhal - Adobe Experience Manager
As already recommended, both the bash script and workflow option are feasible and can get the work. However, I'd recommend to go with bash script cos' that would be hassle free with no deployment required and have more control over what you want do. Obviously, you can do with workflow as well but since it's not the usual thing and mostly needs to be done only once, so considering all those factors, bash script would be nice option.
957
Views
1
Like
0
Answers
Re: Page.listChildren() or data-sly-list=currentPage.listChildren to return sorted list Himanshu_Singhal - Adobe Experience Manager
Using the Use script, there's no such method/parameter available to return sorted data. if you wish to get sorted list based on specific parameter/condition, in that case, write logic in Java. Write either in Sling model or service and utilise accordingly.
726
Views
0
Likes
0
Answers
Re: User Last Login Date and No.of Logins of user Himanshu_Singhal - Adobe Experience Manager
Could you please describe where you want to use the last login and number of times user logs in details?
1313
Views
0
Likes
0
Answers
Re: Deactivate and delete expired assets Himanshu_Singhal - Adobe Experience Manager
Digital Rights Management in Assets Have you tried setting up the "Adobe CQ DAM Expiry Notification".As per official documentation, if the configuration is set, the scheduler runs a check and deactivate the expired assets. However, it doesn't delete the assets and I don't think it does delete OOTB. For that you'll have to write custom code. https://www.katrinaprieto.com/projects/adobe-aem/
1092
Views
1
Like
0
Answers
Re: stop Updating some properties while replicating Himanshu_Singhal - Adobe Experience Manager
ReplicationContentFilter - that's the usual way to filter node/properties during replication. acs-aem-samples/SampleReplicationContentFilter.java at master · Adobe-Consulting-Services/acs-aem-samples · GitHub Experiencing Adobe Experience Manager - Day CQ: AEM 6 - Filter (Skip) Specific Nodes and Properties from Activation (Rep… And, AFAIK, it doesn't delete already existing properties (if there're some properties already on publish server). However, if filter applied, it would stop updating it ...
1193
Views
0
Likes
0
Replies
Re: Problem implementing Custom Resource Provider Himanshu_Singhal - Adobe Experience Manager
Nope; it didn't work out properly.
3010
Views
0
Likes
0
Replies
Re: AEM 6.4 Resource Resolver Mapping home page to root Himanshu_Singhal - Adobe Experience Manager
Hi,I understand your point and for that you can implement custom LinkTransformer and add the condition the way you wants to handle links re-writing. Doesn't matter if the component is custom or OOTB, all the link rewrite control will goes in custom LinkTransformer (if implemented) and there you handle it. Creating a Link Rewriter Service for Adobe Experience Manager 6.3 Using LinkTransformer - How is it triggered?
3001
Views
0
Likes
0
Replies
Re: SlingHttpServletRequest request is null in slingmodel Himanshu_Singhal - Adobe Experience Manager
adapTo() only accept adapting class name. If you need to adapt to request, the link I shared in 1st reply describes how can you create custom adaptorfactory to adapt to request instead of resource.https://taradevko.com/aem/sling-model-request-parameter-injector/
821
Views
0
Likes
0
Answers
Re: SlingHttpServletRequest request is null in slingmodel Himanshu_Singhal - Adobe Experience Manager
In that case, one way is instantiating the model class by creating object and passing request (via constructor or setter). That's the traditional Java way of handling things. Otherwise, you'll have to write custom AdaptorFactory.
809
Views
0
Likes
0
Answers
Re: Why isn't debugging easier? Where's the source code? Himanshu_Singhal - Adobe Experience Manager
And, IntelliJ provides Remote debugging in a quite good way where you can set debug point in compiled classes as well without installing any source code compiler in IDE.
3245
Views
0
Likes
0
Replies
Re: SlingHttpServletRequest request is null in slingmodel Himanshu_Singhal - Adobe Experience Manager
You may try to adaptTo() another Model with request instead of resource and check it that works. Never tried adapting with request but it's just a thought. https://taradevko.com/aem/sling-model-request-parameter-injector/ - This article might help as fits your scenario.
803
Views
0
Likes
0
Answers
Re: AEM6.4 - Execute Event Handler on Activation workflow Himanshu_Singhal - Adobe Experience Manager
Do not use the EventHandler anymore. You can use the Resource Change Listener to listen to node event and implement any custom operations.acs-aem-samples/SampleResourceChangeListener.java at master · Adobe-Consulting-Services/acs-aem-samples · GitHubYou can follow this example however it contains Felix annotations. Attaching sample code with OSGI annotations:@Component( service = ResourceChangeListener.class, property = { ResourceChangeListener.PATHS + "=" + "/", ResourceChangeListener.CHANGES +...
2445
Views
0
Likes
2
Replies
Re: How to hide html tag in Email template? Himanshu_Singhal - Adobe Experience Manager
private String getSubstitutedString(Map valueMap, String beforeParsing) { VelocityEngine ve = new VelocityEngine(); ve.init(); VelocityContext context = new VelocityContext(); StringWriter writer = new StringWriter(); for (Map.Entry entry : valueMap.entrySet()) { String value = xssApi.filterHTML(entry.getValue()); value = Jsoup.parse(value).text(); context.put(entry.getKey(), value); } ve.evaluate(context, writer, "VelocityParser", beforeParsing); return writer.toString(); }Here, the argument be...
869
Views
1
Like
0
Answers
Re: How to hide html tag in Email template? Himanshu_Singhal - Adobe Experience Manager
You can use the Apache Velocity templating engine to add condition based Text in Email.We had the same requirement once and utilised Apache Velocity Templating engine and it's quite nice. https://www.baeldung.com/apache-velocity
879
Views
2
Likes
0
Answers
Re: AEM 6.4 Resource Resolver Mapping home page to root Himanshu_Singhal - Adobe Experience Manager
Kindly make sure that in the configuration "Day CQ Link Checker Transformer" , Strip HTML Extension option is checked. If not, it by default adds the .html extension to url. If you'll check, it'll start stripping off .html extension from url. And, for, url shortening not working, kindly share the mapping or please share the mapping package.Best regards,Himanshu Singhal
3001
Views
0
Likes
2
Replies
Re: Question on component console view Himanshu_Singhal - Adobe Experience Manager Forms
The bundles should be in active state if it's not set to installed state manually.
5961
Views
0
Likes
0
Replies
Re: When will support for Felix SCR annotations be removed? Himanshu_Singhal - Adobe Experience Manager
As mentioned in the blog, the annotations are deprecated but will still be supported. There's no need to migrate existing code based on Felix annotations but it's better if you do so.https://blog.osoco.de/2016/05/migrating-from-the-apache-felix-scr-annotations-to-the-osgi-declarative-services-annotatio…​
837
Views
0
Likes
0
Answers
Re: AEM 6.4 Resource Resolver Mapping home page to root Himanshu_Singhal - Adobe Experience Manager
To handle the case, you'll have to create 2 cases here:1. Specifically for root page2. For all pages under home pages hierarchy. E.g. localhost_4503 localhost.4503Using the above mentioned sling mapping cases, the root page will be delivered for domain name and for below hierarchy, the anothe rule will come in picture
3001
Views
0
Likes
4
Replies
Re: Version purging in 6.3 Himanshu_Singhal - Adobe Experience Manager
Hey,I didn't get the part of version purging with Oak jar. May be something I don't know.....But, you can do the version purging using the Purge tool available with in AEM. http://:/etc/versioning/purge.htmlAlso, as described in above comment, please make sure to create purge configuration. Hope this helps.
2296
Views
0
Likes
0
Replies