since ‎25-06-2014
‎18-11-2020
anjali_biddanda
Level 3
We're considering using this HTTP Assets API for Content...
Avatar

anjali_biddanda

anjali_biddanda
- Adobe Experience Manager
We're considering using this HTTP Assets API for Content Fragments. This API endpoint will be consumed by channels. (Apps, Salesforce etc). However this Assets API only captures dc namespace metadata from the metadata node. Metadata such as lastReplicated date from the jcr:content node of asset is not captured. The need for this lastReplicated date is so that channels only retrieve the CF if it has changed, if not, the cached version at their end is used. As I understand this OOTB Assts API cann...

Views

48

Like

1

Replies

0
We're considering using this HTTP Assets API for Content...
Avatar

anjali_biddanda

anjali_biddanda
- Adobe Experience Manager
We're considering using this HTTP Assets API for Content Fragments. This API endpoint will be consumed by channels. (Apps, Salesforce etc). However this Assets API only captures metadata from the dc namespace. Metadata such as lastReplicated date is not captured. The need for this lastReplicated date is so that channels only retrieve the CF if it has changed, if not, the cached version at their end is used. As I understand this OOTB Assts API cannot be customised. We're looking into other approa...

Views

65

Like

1

Replies

1
Re: Launcher gets triggered by another workflow
Avatar

anjali_biddanda

anjali_biddanda
- Adobe Experience Manager Forms
Thanks Jorg. You're right, I think the event-user-data can only be used for the Assets workflows. Btw, the answer for this has been updated here: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/launcher-gets-triggered-by-another-workflow/qaq-p/383822 I had incorrectly raised this question under Forms, and there's a duplicate question raised in AEM.

Views

89

Like

1

Replies

0
Re: How to get list of Users/Group with specific privileg...
Avatar

anjali_biddanda

anjali_biddanda
- Adobe Experience Manager
I've added the solution as an answer above.

Views

104

Likes

0

Replies

0
Re: How to get list of Users/Group with specific privileg...
Avatar

anjali_biddanda

anjali_biddanda
- Adobe Experience Manager
You can do this: Authorizable userGroup = userManager.getAuthorizable("test-usergroup"); JackrabbitAccessControlManager jMgr = (JackrabbitAccessControlManager) adminSession.getAccessControlManager(); jMgr.hasPrivileges(path, Collections.singleton(userGroup.getPrincipal()), privileges);

Views

67

Like

1

Replies

0
Re: How to get list of Users/Group with specific privileg...
Avatar

anjali_biddanda

anjali_biddanda
- Adobe Experience Manager
Hi @jura_khrapunov, thanks for your quick response. Years back, I understand. I'm trying other approaches.

Views

117

Likes

0

Replies

0
Re: How to get list of Users/Group with specific privileg...
Avatar

anjali_biddanda

anjali_biddanda
- Adobe Experience Manager
Hi @jura_khrapunov , were you able to use this to solve your issue? userManager.findAuthorizables(path, "rep:Group")I have the same problem. I need to know what user groups have write access to a given path. I can't use the above successfully. It only works for relative paths like userManager.findAuthorizables("jcr:primaryType", "rep:Group") @smacdonald2008 , do you have any suggestions?

Views

130

Like

1

Replies

3
Re: Jacoco coverage report has 0 coverage, although junit...
Avatar

anjali_biddanda

anjali_biddanda
- Adobe Experience Manager
Hi @Manjunath_K, all good after I changed it to JUnit5 @ExtendWith syntax.

Views

126

Likes

0

Replies

0
Re: Jacoco coverage report has 0 coverage, although junit...
Avatar

anjali_biddanda

anjali_biddanda
- Adobe Experience Manager
Hi guys, I changed the junit4 syntax (@RunWith(MockitoJUnitRunner.class)) to use @ExtendWith(MockitoExtension.class) and this fixes it. Jacoco doesn't understand the old syntax.

Views

242

Likes

2

Replies

3
Jacoco coverage report has 0 coverage, although junit tests run with 100% coverage
Avatar

anjali_biddanda

anjali_biddanda
- Adobe Experience Manager
Hi Everyone, I have a workflow process class and a junit test class for it. Junit tests run successfully. However, Jacoco reports 0% coverage. It seems to ignore this class because of the annotation:@RunWith(MockitoJUnitRunner.class) I'd like to use the new @ExtendWith(MockitoExtension.class), but I'm not successful in getting the tests to run successfully. I haven't seen an example of this Junit5 notation used for Workflow processes. There are recent unit test examples for workflow processes he...

Views

275

Likes

0

Replies

4
Re: Multiple conditions in workflow launcher
Avatar

anjali_biddanda

anjali_biddanda
- Adobe Experience Manager
Later versions of AEM allow multiple conditions to be added to list when you use the Launcher configuration in Touch UI.But you could try the following, as this is how it is constructed when you add multiple conditions in touch ui:(condition 1) && (condition 2)

Views

75

Like

1

Replies

0
Re: Multiple conditions in workflow launcher
Avatar

anjali_biddanda

anjali_biddanda
- Adobe Experience Manager
Later versions of AEM allow multiple conditions to be added to list when you use the Launcher configuration in Touch UI.But you could try the following, as this is how it is constructed when you add multiple conditions in touch ui:(condition 1) && (condition 2)

Views

82

Like

1

Replies

0
Re: How to set up a rep:policy(deny) for a specific user...
Avatar

anjali_biddanda

anjali_biddanda
- Adobe Experience Manager
This does it: //Create your adminSession using a mapped service user Map param = new HashMap(); param.put(ResourceResolverFactory.SUBSERVICE, "write-service"); //ensure you have write-service user created via a config script or on usermanager ResourceResolver resourceResolver = resourceResolverFactory.getServiceResourceResolver(param); Session adminSession = resourceResolver.adaptTo(Session.class); AccessControlManager aMgr = adminSession.getAccessControlManager(); // create privilege Privilege[...

Views

161

Like

1

Replies

0
Re: Failed to add ACL permissions in AEM 6.3
Avatar

anjali_biddanda

anjali_biddanda
- Adobe Experience Manager
You don't need to use CUG here, as they are for pages that need login. You can use AccessControlUtils.getAccessControlList(adminSession, path) to get the ACL instead. //Create your adminSession using a mapped service user Map param = new HashMap(); param.put(ResourceResolverFactory.SUBSERVICE, "write-service"); //ensure you have write-service user created via a config script or on usermanager ResourceResolver resourceResolver = resourceResolverFactory.getServiceResourceResolver(param); Session a...

Views

90

Likes

0

Replies

0
Re: Failed to add ACL permissions in AEM 6.3
Avatar

anjali_biddanda

anjali_biddanda
- Adobe Experience Manager
Refer to comment above for a fix.

Views

89

Likes

0

Replies

0
Re: How to set up a rep:policy(deny) for a specific user group to not access an AEM page programmatically
Avatar

anjali_biddanda

anjali_biddanda
- Adobe Experience Manager
@srig786, did you get this working?

Views

163

Likes

0

Replies

0
Cannot create a new page after AEM 6.5 in-place upgrade.
Avatar

anjali_biddanda

anjali_biddanda
- Adobe Experience Manager
Hi guys,We've done an in-place upgrade from AEM6.4 to AEM6.5. We've seen a problem with not being able to create a new page. We see this when using the create page wizard:Error:java.lang.UnsupportedOperationException: create 'content' at /mnt/overlay/wcm/core/content/sites/createpagewizardAnd here's the error log:26.04.2020 14:42:07.956 *ERROR* [0:0:0:0:0:0:0:1 [1587876127953] POST /mnt/overlay/wcm/core/content/sites/createpagewizard.html/content/xxxxx/xxx/xxxx/xxxx HTTP/1.1] org.apache.sling.se...

Views

2.9K

Likes

0

Replies

1
Re: Unable to edit pages after in-place 6.5 upgrade
Avatar

anjali_biddanda

anjali_biddanda
- Adobe Experience Manager
I tried purging these workflows from the JMX console but the console does not give you a success message, so I doubt it worked. When we tried again and used the correct model ID for the workflow and did the purge, the pageInfo.json started showing and the Pages became editable. So the solution is to PURGE any workflows in a RUNNING state that use a stale workflow model.

Views

1.3K

Like

1

Replies

0
Re: Unable to edit pages after in-place 6.5 upgrade
Avatar

anjali_biddanda

anjali_biddanda
- Adobe Experience Manager
I tried purging these workflows from the JMX console but the console does not give you a success message, so I doubt it worked. When we tried again and used the correct model ID for the workflow and did the purge, the pageInfo.json started showing and the Pages became editable. So the solution is to PURGE any workflows in a RUNNING state that use a stale workflow model.

Views

1.7K

Likes

0

Replies

0
Unable to edit pages after in-place 6.5 upgrade
Avatar

anjali_biddanda

anjali_biddanda
- Adobe Experience Manager
We did an in-place upgrade to 6.5 from 6.4.2. The pages are now not edit-able (even as an admin). I'm seeing this error:Internal Server ErrorCannot serve request to /libs/wcm/core/content/pageinfo.json in com.day.cq.wcm.core.impl.servlets.PageInfoServletException:java.lang.NullPointerExceptionThis is the what i see when trying to load /libs/wcm/core/content/pageinfo.json: 0 TIMER_START{Request Processing} 0 COMMENT timer_end format is {,} 5 LOG Method=GET, PathInfo=null 5 TIMER_START{handleSecu...

Views

2.3K

Likes

0

Replies

4
Hi / , I'm seeing the same issue after an in-place upgr...
Avatar

anjali_biddanda

anjali_biddanda
- Adobe Experience Manager
Hi @anurag-wyndham / @sreedobe , I'm seeing the same issue after an in-place upgrade to AEM6.5. Do either of you remember what you did to fix it?

Views

13.0K

Likes

0

Replies

0
Re: How to use a different OSGI bundle for your imported...
Avatar

anjali_biddanda

anjali_biddanda
- Adobe Experience Manager
Thanks Arun, I gave that a try. It didn't help. javax.servlet.jsp is still using org.apache.sling.scripting.jsp-api.

Views

973

Likes

0

Replies

0
How to use a different OSGI bundle for your imported package
Avatar

anjali_biddanda

anjali_biddanda
- Adobe Experience Manager
AEM 6.5 has two OSGi bundles (A and B). A = org.apache.sling.scripting.jspB = org.apache.sling.scripting.jsp-api My project bundle has a Java class that uses:import javax.servlet.jsp.PageContext; I want this imported package to use OSGI bundle A, not B. In AEM 6.4, this was our imported packages list:javax.servlet.jsp,version=2.1.0 from org.apache.sling.scripting.jsp (525)javax.servlet.jsp.tagext,version=2.1.0 from org.apache.sling.scripting.jsp (525) But in AEM 6.5, these imported packages are ...

Views

1.0K

Likes

0

Replies

2
Re: AEM 6.2 to 6.5 Upgrade - dialogs missing value
Avatar

anjali_biddanda

anjali_biddanda
- Adobe Experience Manager
To add to my original post, this is what I see in the logs when I open my dialog:

Views

2.6K

Likes

0

Replies

0
Re: AEM 6.2 to 6.5 Upgrade - dialogs missing value
Avatar

anjali_biddanda

anjali_biddanda
- Adobe Experience Manager
Raj, thank you for your response. I tried overlaying and setting CQ.PAGE_PROPERTIES_MAX_RECURSION_LEVEL to a larger value, unfortunately no luck!

Views

2.6K

Like

1

Replies

1
AEM 6.2 to 6.5 Upgrade - dialogs missing value
Avatar

anjali_biddanda

anjali_biddanda
- Adobe Experience Manager
Hi Guys, I'm doing an impact analysis of migrating from 6.2 to 6.5. I have updated the project to build our code successfully into a fresh instance of 6.5. Then I used the crx2oak migration tool (the latest crx2oak-1.8.6-all-in-one.jar) to migrate content to the new 6.5 instance with success. The pages on the site load successfully, but on opening components that use a multifield (granite/ui/components/foundation/form/multifield), the values of the multifield do not show in the dialog. The CRX h...

Views

3.1K

Like

1

Replies

4
Re: Empty attribute value stripped by Sightly
Avatar

anjali_biddanda

anjali_biddanda
- Adobe Experience Manager
Thanks Arun. That's right! And I found this after I developed a transformer that looks at a path, picks IMG tags to transform and update the alt attribute, only to find out that it's the Chrome browser dev tool that removes the empty attribute value! Chrome version 55/56 and Safari does this too. Firefox renders the alt="". I should've looked at view source instead of the Inspect element. I found the following posts and I knew this accessibility issue is not for me to fix. Would've saved you tim...

Views

1.5K

Likes

0

Replies

0
Empty attribute value stripped by Sightly
Avatar

anjali_biddanda

anjali_biddanda
- Adobe Experience Manager
HI All,We have a scenario where we want the empty alt attribute to be preserved as alt="" instead of stripping the empty string. Screen readers skip the image when alt="" whereas if only alt is found, some screen readers like Jaws and NVDA do not skip the image.What we want: The issue we have now: This is with any attribute that has an empty literal string. Sightly strips them from the output. We're using AEM6.2 which uses Sightly version 1.2. I've tested on AEM6.4, which has Sightly 1.3 and we ...

Views

2.5K

Like

1

Replies

3
Re: Custom Content Builder for Replication
Avatar

anjali_biddanda

anjali_biddanda
- Adobe Experience Manager
Hi krishnak30677142I'm facing the same issue with my custom replication agent. Can you share what you did to fix it?Thanks,Anjali

Views

812

Likes

0

Replies

0
Re: Dynamic vanity URLs in AEM
Avatar

anjali_biddanda

anjali_biddanda
- Adobe Experience Manager
You'll need to use a sling servlet with a selector. Your selectors will be firstname, lastname. Your sling servlet annotation will look like this:@SlingServlet(resourceTypes = "myBrand/components/pages/myPeoplePageType", selectors ={firstname, lastname}, extensions = "html”, methods=”GET”)Your URL below:http://www.myhost.com/people.firstname.lastnamewill invoke your servlet and pass current page path along with other parameters. Servlet would be resolved through selectors & resource type.Then yo...

Views

2.2K

Likes

0

Replies

0