since ‎28-03-2017
‎28-10-2020
jayv25585659
Level 4
AEM 6.5: "Permission management" - where do I access this? jayv25585659 - Adobe Experience Manager
We are in the process of testing 6.5 (AMS-hosted installation) and we were given some slides on the 6.5 upgrade. I want to know where do I find/access this screen. On the screenshot of the slide, I can see "Basic view", "Principal view" and "Node view". (The screenshot is too small to easily see the 3 views but trust me, it's there!) I looked at Tools => Security => Permissions and I don't see the 3 views I mentioned above. Thanks EDIT: I forgot to mentioned that I am looking at the AEM 6.5 sand...
51
Views
0
Likes
2
Answers and Comments
javax.jcr.node: How to use orderBefore function? jayv25585659 - Adobe Experience Manager
I have the following path: /content/mysite/en/jcr:content/content/section/par_0 /content/mysite/en/jcr:content/content/section/par_1 /content/mysite/en/jcr:content/content/section/par_1/oldnode I want to add another node before the RTE node. It seems I need to be using orderBefore function but I cannot get it to work. I triedNode mynode = session.getNode("/content/mysite/en/jcr:content/content/section/par_1);mynode.orderBefore("oldnode", "newnode") and I'm getting a "not a child error". Any idea...
100
Views
0
Likes
1
Answers and Comments
Using Java, how do I add a new node before/after an existing node? jayv25585659 - Adobe Experience Manager
I have this content hierarchy (see below). If I were to manually drag/drop components before and after the RTE component, the new components also show as before/after the RTE. I want to programmatically add a new node (as an example, a reference component) and I already know how to create new node that as I got existing code I can use as a base. But what I do not know is how make sure it's added before/after the RTE as the order matters. Thanks!beforeafter
94
Views
0
Likes
1
Answers and Comments
Re: What are the ways to bulk insert some piece of text i... jayv25585659 - Adobe Experience Manager
1. The content that will be changed are inside a path so it's easy to identify them that way.2. I thought of either using a deploy script or a workflow (after I saw your suggestion)
79
Views
0
Likes
0
Comments
What are the ways to bulk insert some piece of text into pages (1000+)? (we're not using editable templates) jayv25585659 - Adobe Experience Manager
as above. I believe we're using static templates which is the solution before 6.2?I was thinking of editing the static template directly and using JS to show/hide this piece of text. This piece of text does not appear in all pages. Thanks
135
Views
0
Likes
3
Answers and Comments
How does DAM Parse Word Documents create renditions/modify asset properties? jayv25585659 - Adobe Experience Manager
I've uploaded 2 word documents (both .docx) on my local and Adobe AMS-hosted AEM. Both documents contains a form. In both instances, these things happened:1. DAM Parse Word Documents workflow triggered2. images presents on the Word document where identified as sub-assets But something is different from the documents. When inspecting the properties for both documents:- document1 has "Referenced by: Page extract from Word"- document2 has no "Referenced by: Page extract from Word" According to this...
1514
Views
0
Likes
1
Answers and Comments
What's the best way to get the currently logged in username (accessing publisher/dispatcher) jayv25585659 - Adobe Experience Manager
Session session = getRequest().getResourceResolver().adaptTo(Session.class);UserManager userManager = getResource().adaptTo(UserManager.class);Authorizable auth = userManager.getAuthorizable(session.getUserID());userId = auth.getID(); So I have the code above to get the currently logged in username in my local AEM instance. In my testing, session.getUserID() = auth.getID(). I feel that using session.getUserID() should be sufficient in trying to get the username of the currently logged in user. I...
735
Views
2
Likes
1
Answers and Comments
how to prevent insertion of components into a page? jayv25585659 - Adobe Experience Manager
so I have the following setup (using Netcentric ACL framework): - path: /content/staff/en permission: allow privileges: jcr:read,jcr:modifyProperties,jcr:removeNode,jcr:removeChildNodes,jcr:addChildNodes repGlob: '*/jcr:content*'This allows me to edit, delete and add components into a page. If I remove "jcr:addChildNodes", I cannot add any new components into the page BUT this also removes my ability to edit/configure the components already in the page.I am looking at https://docs.adobe.com/docs...
1883
Views
0
Likes
3
Answers and Comments
How to prevent insertion of components into a page? jayv25585659 - Adobe Experience Manager
so I have the following setup (Netcentric ACL framework): - path: /content/staff/en permission: allow privileges: jcr:read,jcr:modifyProperties,jcr:removeNode,jcr:removeChildNodes,jcr:addChildNodes repGlob: '*/jcr:content*'This allows me to edit, delete and add components into a page. If I remove "jcr:addChildNodes", I cannot add any new components into the page BUT this also removes my ability to edit/configure the components already in the page.I am looking at this link and "jcr:addChildNodes"...
1016
Views
0
Likes
0
Replies
How do I read (via Java?) the SAML response from my SSO provider? jayv25585659 - Adobe Experience Manager
We have protected some pages via login through our SSO provider. I would like to read the SAML response so we can customize some of the things that's displayed on the page.How can this be done?I've searched the net and the results I've found involves the configuration to setup AEM to connect to a SSO provider (this part is already configured and working already).Thanks
1347
Views
1
Like
2
Answers and Comments
incomplete HTML in event.target.innerHTML (foundation-contentloaded event triggered) jayv25585659 - Adobe Experience Manager
so I have some javascript that just output that contents of event.target.innerHTML to the console.When I compared the actual HTML on the page (HTML code acquired using inspect element) vs event.target.innerHTML, there are some lines missing from innerHTML.Any ideas what could be happening? These lines I'm most interested in is this Clear Drop an asset here.This is my Javascript(function(document, $) { "use strict"; $(document).on("foundation-contentloaded", function(event) { console.log(event.t...
1094
Views
1
Like
0
Replies
6.4.x: How to display image path in component dialog? jayv25585659 - Adobe Experience Manager
I have several components here which uses image (examples: background image in a div or a img tag for displaying images).I want to:display the image/asset path when I open dialog if an image has been imported alreadydisplay blank/empty string if no image has been importedAny ideas on how to do this? I found something that may work (Image Path in Touch UI dialog (AEM 6.1 and AEM 6.2) As a test, I placed a console.log("something here") just before $(document) and nothing is showing up in the conso...
1783
Views
1
Like
3
Answers and Comments
Re: AEM 6.4.x: How to disable insertion of components unto an existing page? jayv25585659 - Adobe Experience Manager
more details would be great. thanks!
9024
Views
0
Likes
0
Replies
Re: AEM 6.4.x: How to disable insertion of components unto an existing page? jayv25585659 - Adobe Experience Manager
Hello. I tried you're suggestion (privileges: jcr:removeChildNodes, jcr:removeNode) and I cannot add/edit/delete components. I cannot do anything on the page.If I give "jcr:addChildNodes" access, I can edit and delete existing components (which is want I want) but I can also add new components (which is NOT what I want).I had a look at the various JCR privileges (https://sling.apache.org/documentation/bundles/managing-permissions-jackrabbit-accessmanager.html) and nothing stands out.Any ideas? T...
9022
Views
0
Likes
0
Replies
AEM 6.4.x: How to disable insertion of components unto an existing page? jayv25585659 - Adobe Experience Manager
as abovecurrent setup: Using Netcentric's Access Control Tool for managing users/group permissionsI think my requirements are best explained with an example. I want to use Netcentric ACL to manage this if possible.I've been searching the net but can't even see discussion on the topicThanks for the assistance.-------------------Example: In edit mode, members of group X has edit access to existing pages in path /content/mysite/en/about with the following access/restrictions- allowed to edit any ex...
9321
Views
2
Likes
6
Replies
Is there a way to associate a DAM location to a site (for ACS custom error handling)? jayv25585659 - Adobe Experience Manager
Hello.Can someone please help me debug a custom error handler that was developed by someone else? Thank you.----------------setup:1. 4 sites in 1 AEM instance (/content/site1/en, /content/site2/en, /content/site3/en, /content/site4/en)2. the 4 sites listed in no.1 each have an associated DAM location (/content/dam/site1, /content/dam/site2, /content/dam/site3, /content/dam/site4)3. content of com.adobe.acs.commons.errorpagehandler.impl.ErrorPageHandlerImpl.xml4. snippet of my custom 404.jsp<% if...
1077
Views
1
Like
1
Answers and Comments
Re: How to debug JSPs in an AEM custom errorhandler? jayv25585659 - Adobe Experience Manager
I tried your suggestion of using log4j,I modified the first 8 lines of my code to reflect the contents of the SO.com discussionAs you can see, I really didn't do anything other than importing a class and declaring a new variable. The code successfully compiled and when I reloaded my page, I now keep on getting:Previously I was getting our custom 404 HTML page.
2066
Views
0
Likes
0
Answers
Re: How to debug JSPs in an AEM custom errorhandler? jayv25585659 - Adobe Experience Manager
using your instructions, I found the bundle ID to be 499. I then loaded the folder inside IntelliJ and then created a new debug configuration. I tried debugging the code and I keep on getting "Source code does not match byte code".
1778
Views
0
Likes
0
Answers
How to debug JSPs in an AEM custom errorhandler? jayv25585659 - Adobe Experience Manager
setup:1. a local instance of author (running on 4502 and debugging port on 8000) and publisher (running on 4503 and debugging port on 8002)2. used this guide (Debug an AEM app using eclipse ) to setup 2 debug configurations for my author and publisher local instances3. Somebody (a person before me) created a custom version of /libs/sling/servlet/errorhandler and placed it in /apps/sling/servlet/errorhandlerMy question is on how to do debug the custom JSP page. I placed a breakpoint in the JSP on...
4187
Views
1
Like
5
Answers and Comments
Re: How to get a 403 error when trying to access a CUGs protected DAM asset? jayv25585659 - Adobe Experience Manager
We want to deviate from the default because we have a need. In addition to that, we have variations/changes to various built-in components (RTE and image component comes to mind) because of our needs as well.------------------------Can you please tell me how to change the default to a 404? Thanks
1177
Views
0
Likes
0
Answers
How to get a 403 error when trying to access a CUGs protected DAM asset? jayv25585659 - Adobe Experience Manager
setup/configurationusing OKTA SSO which I configured using the SAML authentication configurationLooking at the code base and CRXDE, I can see we are using ACS commons error handling.I can only see a 404.jsp and a default.jsp in /apps/sling/servlet/errorhandlerI have a 403.html, 404.html and default.html in /content/mysite/en/errors. This path has been configured in com.adobe.acs.commons.errorpagehandler.impl.ErrorPageHandlerImpl.xmlI have several custom user groups in AEM. These includes role-cu...
1453
Views
2
Likes
3
Answers and Comments
Re: How to access an OSGI service from a servlet? jayv25585659 - Adobe Experience Manager
I did try @reference also (didn't write that in the original post) and service variable was null. But I also didn't have immediate=true. Trying your suggestion now.
3280
Views
0
Likes
0
Replies
How to access an OSGI service from a servlet? jayv25585659 - Adobe Experience Manager
II have a servlet (example" localhost:4502/bin/my-servlet-here) where I would need to access an OSGI service.I've tried several stuff I saw online but I cannot get access/reference to the OSGI service from my servlet.Any ideas on how it can be done?In the code servlet class below, I was debugging in my IDE (IntelliJ) and it's hanging/not responding on the line that starts with "ServiceReference reference"Thanks-----------my servlet classpackage com.myhost.core.servlets;import com.myhost.core.ser...
3445
Views
1
Like
3
Replies
Errors when trying to use custom page template as editable template jayv25585659 - Adobe Experience Manager
I want to setup editable template so that the author can remove components that's in the templates as required. The final template will have:left navigationseveral links1 RTE--------------------We are currently using static templates which I believe is the norm for AEM 5.x and 6.0-6.1?I am trying to use this template on a editable template and it seems to be working fine initially. The only change I had to do is to edit the parsys properties so that the components show up on both the template an...
991
Views
0
Likes
0
Replies
How do I show a document title when viewing a published PDF inside browser? jayv25585659 - Adobe Experience Manager
So we have lots of PDF that has been uploaded to the DAM and they don't have a title in the PDF properties (open PDF file in Acrobat and then File=>Properties). In all cases, our authors have changed the DAM metadata and added a title and PDF title (see below for sample)And these are causing issues for us:1. When these PDFs are published and viewed inside a browser, the file name is the one showing in the tab.2. Search engines are displaying the file names in the results instead of a titleIs the...
1216
Views
0
Likes
1
Answers and Comments
Adobe AEM 6.4.x workflows: graniteWorkItem is undefined when used in an OR split jayv25585659 - Adobe Experience Manager
I'm trying to run a script in an OR split and I keep on getting the error below. According to this page, "graniteWorkItem" is included in the list of "variables that are immediately available to process scripts, providing access to objects of the workflow Java API" (quoted from the link).observations:I tried "workItem" which I believe is the variable for CQ5? same error.I removed the OR Split and then inserted a dynamic participant step. On the participant chooser, I selected Workflow Initiator ...
1143
Views
0
Likes
0
Replies
Re: 6.4.x: How to correctly use path selection with an OR Split? jayv25585659 - Adobe Experience Manager
Looking at the link, it seems what I want can't be done without custom code?
1200
Views
0
Likes
0
Answers
6.4.x: How to correctly use path selection with an OR Split? jayv25585659 - Adobe Experience Manager
AEM site setup:4 sites have been setup in /content./content/site1/en/content/site2/en/content/site3/en/content/site4/en---------------------------------So I was reading this guide/example (Creating Workflow Models ) on how to setup path selection on an OR Split. Using this example, I create 4-branch OR Split and each branch having its own script (see below for code).My problem is that the path selection is not working properly.tests I've done:I request for publication a page in /content/site3/en...
1629
Views
1
Like
2
Answers and Comments
Re: What's the correct way of storing passwords in AEM? jayv25585659 - Adobe Experience Manager
Thanks for the response. With question 2, what sort of reference do I need to import to get it work?I'm currently using "org.osgi.service.component.annotations.Reference" and have the following Java code in my servlet@Referenceprivate ConfigurationAdmin configAdmin; private static final String LOGGER_FACTORY_PID = "org.apache.sling.commons.log.LogManager.factory.config";@Overrideprotected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response) throws ServletException, IOEx...
2050
Views
1
Like
0
Answers
Cannot import XML values that has been protected (/system/console/crypto) jayv25585659 - Adobe Experience Manager
So I encrypted a text using this page: http://localhost:4502/system/console/cryptoI then copy/paste the protected text to an OSGI Service config XMLNote: The protected value I used in this XML above is fake. This is only an example.When I import my code package into AEM, my.protected.text1 is empty/blank. If I change the value in the XML to something like "qwerty". The value gets imported.Any ideas what I'm doing wrong?Thanks
2616
Views
0
Likes
3
Replies