since ‎24-04-2020
‎28-07-2020
karthik4
Level 1
Servlet JSON Response integration Tests karthik4 - Adobe Experience Manager
Hello All,There's requirement to expose a large sized JSON from an AEM servlet. The work is all complete. The Servlet is exposing the correct data. We are using unit tests to validate and ensure each and every property and type exists in the JSON response. The next requirement is to write testes to validate against a swagger contract. How can we set this up? Is this an integration test? How to get started?
102
Views
0
Likes
1
Answers and Comments
Where to save 3rd Party Nodes in the JCR, AEM 6.4+ karthik4 - Adobe Experience Manager
Hello, I'm planning to write a schedular in AEM that calls an 3rd party api, then saves the data everyday at 2am. The data is then used to render pages. My Question, where in the JCR would I save these these nodes, what would the best practice JCR structure look like?Is the /etc folder a good place to keep these nodes... as they are always being updated everyday at 2am?The 200OK response JSON structure looks like this:[ { "Name":"chevrolet chevelle malibu", "Miles_per_Gallon":18, "Cylinders":8, ...
154
Views
0
Likes
4
Answers and Comments
Groovy Console on Production karthik4 - Adobe Experience Manager
I need to content migrate all pages that has an existing legacy component to migrate it to a new component structure (total nodes found, more than 1000). My plan is to run the groovy script on production author, then to tree-activate the entire tree structure. Is it best practice to Groovy Console on Production author, then to replicate from Production author?
104
Views
0
Likes
2
Answers and Comments
AEM 6.5, questions for 3rd party data stored into AEM karthik4 - Adobe Experience Manager
Hello,My AEM application depends on data from a 3rd party API which will be used to render HTML on the page. I understand data from 3rd party API is recommended to be stored in AEM, so it can improve performance overall effortOld aem is recommended to store data under /etc, how about about AEM 6.5?How is the 3rd party data, saved as nodes, invalidated?How is the data within the saved nodes refreshed?What is the best practice to invoke the 3rd party data saving mechanism?example JSON response fro...
51
Views
0
Likes
1
Answers and Comments
Re: External content in AEM karthik4 - Adobe Experience Manager
@varuns, where in the JCR should we store the imported data? /etc? /content?, given example for the we.retail project, where would we store the data?
179
Views
0
Likes
0
Comments
How to programmatically enable / disable cq:noDecoration? karthik4 - Adobe Experience Manager
Hello All,I have a problem where the overall page renders HTML elements as expected in the publisher when cq:noDecoration is set to "true" on a given component.However, when cq:noDecoration is set to "true", I cannot edit and make any changes my component; the dialogue does not show. When I set the value to false, it works again, but I the publisher needs the value cq:noDecoration=true.Is there a nice way for me to programmatically set cq:noDecoration to true only on "author mode"?Requirement:on...
324
Views
0
Likes
3
Answers and Comments
Re: wcm.io mockPageManager, unable to test PageManager "c... karthik4 - Adobe Experience Manager
Yeah, we can see that the MockPageManager.copy is not implemented.@Override 294 public Page copy(final Page page, final String destination, final String beforeName, final boolean shallow, 295 final boolean resolveConflict) { 296 throw new UnsupportedOperationException(); 297 }https://wcm.io/testing/aem-mock//xref/io/wcm/testing/mock/aem/MockPageManager.htmlWhat is another way to test this?
2667
Views
0
Likes
0
Comments
Re: wcm.io Junit4 Test - Sling Model Constructor karthik4 - Adobe Experience Manager
thank you, I figured it out without the Constructer. this works!
2471
Views
0
Likes
0
Comments
wcm.io Junit4 Test - Sling Model Constructor karthik4 - Adobe Experience Manager
Hello, I am having a problem where the resource is not injected into the Sling Model constructor during a test, I was able to inject mock services into the constructor, but unable to with the resource object (I do not wish to inject the Resource via Sling Model Annotations, as I want to use the constructor only):WebData Sling Model:@Model(adaptables = {SlingHttpServletRequest.class, Resource.class}, defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL) public class WebData { @inject publ...
3677
Views
0
Likes
3
Answers and Comments
wcm.io mockPageManager, unable to test PageManager "copy". karthik4 - Adobe Experience Manager
Hello Guys, I am trying to test the PageManager.copy() with wcm.io, but am unable to do so. This is because the mockPageManager.copy() is not implemented. What are some other ways for me to test the PageManager.copy() command?io.atlassian.net/browse/WTES-17?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel java.lang.UnsupportedOperationExceptionat org.apache.sling.testing.mock.jcr.MockSession.move(MockSession.java:424)
2912
Views
0
Likes
2
Answers and Comments
Re: AEM Assets Meta Data Schema, Folder Specific karthik4 - Adobe Experience Manager
it works!
2932
Views
0
Likes
0
Comments
wcm.io mockPageManager, unable to test PageManager "copy". karthik4 - Adobe Experience Manager
Hello Guys, I am trying to test the PageManager.copy() with wcm.io, but am unable to do so. This is because the mockPageManager.copy() is not implemented. What are some other ways for me to test the PageManager.copy() command?io.atlassian.net/browse/WTES-17?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel
790
Views
0
Likes
1
Answers and Comments
Re: What is the best way to remove/add/modify node struct... karthik4 - Adobe Experience Manager
5. Patch PROD, are you calling the patch servlet on PROD? What happens if I have two PROD authors?
3310
Views
0
Likes
0
Comments
Re: What is the best way to remove/add/modify node struct... karthik4 - Adobe Experience Manager
5. Patch PROD, are you calling the patch servlet from PROD?
3310
Views
0
Likes
0
Comments
Re: What is the best way to remove/add/modify node struct... karthik4 - Adobe Experience Manager
Patch PROD, are you calling the patch servlet from PROD?
3313
Views
0
Likes
0
Comments
Re: What is the best way to remove/add/modify node struct... karthik4 - Adobe Experience Manager
What ACS Commons Tool are you speaking about? and what's the best way to add "mixinType"? Can you please provide me with your procedure to add "mixinType" to many nodes in AEM content?
4085
Views
0
Likes
0
Comments
AEM Assets Meta Data Schema, Folder Specific karthik4 - Adobe Experience Manager
Hello, is it possible to only set my custom AEM Assets Meta Data Schema for a specific folder in AEM DAM Assets?The use case is that we only want to display the custom schema on one root folder /content/dam/my-site/unlicensed/*.Current configuration sets the custom schema in "/conf/global/settings/dam/adminui-extension/metadataschema/default".
5841
Views
1
Like
6
Answers and Comments
Re: What is the best way to remove/add/modify node struct... karthik4 - Adobe Experience Manager
Thank you for replying. Is there another way for me to do this that is not that risky? Is this the best less risky to add mixinType to nodes?1. Alert content authors to stop authoring.2. Create new content package in production-live, as mixinType-to-add.1.0.0.zip3. Download mixinType-to-add.1.0.0.zip.4. on desktop, mixinType-to-add.1.0.0.zip to unzip.5. add all changes to node in Local AEM using ACS Commons Tool.6. Export ZIP with version mixinType-to-add.1.0.1.zip ffrom Local AEM.7. ZIP the pac...
4119
Views
0
Likes
0
Comments
Re: What is the best way to remove/add/modify node struct... karthik4 - Adobe Experience Manager
Say what happens if I only want to add a mixinType for 30 pages. How would we achieve this?
2675
Views
0
Likes
0
Comments
Re: What is the best way to remove/add/modify node struct... karthik4 - Adobe Experience Manager
for example, a simple task to add the "mixinType" property for 30 pages for each live website (3 websites). The website cannot be idle for too long. What is the best way to achieve this? Is it best to stop content authoring, download content, make changes, install new content package?OR, should I run a servlet to add mixinType, then re-publish all the pages? Please advise. By the time we download 30 pages (from each site, so 90 pages), moments later during development, some pages may be updated....
2056
Views
0
Likes
0
Comments
What is the best way to remove/add/modify node structure in a live production environment? karthik4 - Adobe Experience Manager
My AEM platform contains 3 websites of which contains lots of content. I need to remove/add/modify content nodes in production without affecting content authors and their daily tasks. What is the best practice and best way to remove/add/modify content nodes without affecting production content authors? How should I test this and go live?
9126
Views
0
Likes
13
Answers and Comments
Re: OSGI class library version status checker? karthik4 - Adobe Experience Manager
Thank you, I guess reviewing each bundle's export configuration is the only way. I will take a look at the servlet approach. And No, I do not want to store all exported versions of all bundles where I want to view all the exported classes and each of their versions in a nice visual way.
4067
Views
0
Likes
0
Comments
Re: What is the best way to remove/add/modify node struct... karthik4 - Adobe Experience Manager
Thank you, but there's a solution I found online, using AEM Groovy https://github.com/icfnext/aem-groovy-console. Would this work? And also would writing a dynamic servlet work as well?
4703
Views
0
Likes
0
Comments
Re: google reCaptcha configuration for multiple website p... karthik4 - Adobe Experience Manager
Thank you, but what is the best practice? context-aware config or page property?
3785
Views
0
Likes
0
Comments
Re: OSGI class library version status checker? karthik4 - Adobe Experience Manager
Thank you, but is there a way for me to see all the version available in the OSGI container, for example this class? org.apache.commons.lang3. Going through each bundle can be take too much effort, no?
4072
Views
0
Likes
0
Comments
Re: What is the best way to remove/add/modify node struct... karthik4 - Adobe Experience Manager
The Live AEM websites will be continuously edited by authors. I presume that the content packages will overwrite content that is being edited by production content authors. For example there are 50 pages that has child nodes that must be removed/added/updated. For example, adding a new property like a mixintype
4715
Views
0
Likes
0
Comments
What is the best way to remove/add/modify node structure in a live production environment? karthik4 - Adobe Experience Manager
My AEM platform contains 3 websites of which contains lots of content. I need to remove/add/modify content nodes in production without affecting content authors and their daily tasks. What is the best practice and best way to remove/add/modify content nodes without affecting production content authors? How should I test this and go live?
4729
Views
0
Likes
5
Answers and Comments
Re: google reCaptcha configuration for multiple website p... karthik4 - Adobe Experience Manager
I was to avoid the context-aware config because of many restrictions do you think @andyshreve's solution is a better and best practice solution? context-aware config is not widely used by the community right?
3796
Views
0
Likes
0
Comments
OSGI class library version status checker? karthik4 - Adobe Experience Manager
I have three separate AEM projects repositories, and two of those projects exports common different version classes to the OSGI runtime environment. Where can I check OSGI container already-installed classes and versions? Each of my AEM projects exports the same class library, but different versions.please and thank you.
4082
Views
0
Likes
4
Answers and Comments
google reCaptcha configuration for multiple website pattern karthik4 - Adobe Experience Manager
Hello, I have 3 Websites hosted on my AEM platform, each using Google reCaptcha. Each website are completely different, but they use the similar service Google reCaptcha service. Each website has their own separate "public key". What is the best way to configure each website, so that the keys are only expose to specific websites? OSGI configurations, configuration on the recaptcha component, configuration in page properties, etc? Whats the best practice, please help?
4291
Views
0
Likes
6
Answers and Comments
Likes given to
Likes from