since ‎10-07-2019
Online
srinivas_chann1
Level 4
AEM6.5 query throws exception even after oak indexing for OOTB query
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi, I was able to create oak index based on the finding from https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem6-5-indexing-on-ootb-query-for-find-and-replace-text/qaq-p/398465#M85988 The query that is triggered is using http://localhost:4502/content/project/us/en.find.json?_charset_=utf-8&f=abc&cs=false&wwo=false&cq_ck=1614580151256 But when i execute command on the top content path i.e /content/projectpathselect [jcr:path], [jcr:score], * from [nt:base] as a where is...

Views

67

Likes

0

Replies

3
Re: aem6.5 Indexing on OOTB query for find and replace text
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Thanks for the information

Views

26

Likes

0

Replies

0
Re: aem6.5 Indexing on OOTB query for find and replace text
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi Vijayalakshmi_S, I was able to capture logs using .find.json but for replace.html does not shown any query in logs .How to find what is the query for that for http://localhost:4502/content/project/us/en.replace.html it is not showing any query in logs so what does this mean ,I need to looks any other packages in logs Thanks

Views

53

Likes

0

Replies

0
aem6.5 Indexing on OOTB query for find and replace text
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi , We are using AEM6.5 OOTB find and replace functionality ,but noticed in the logs that this is causing lot of nodes to traversed hence want to index this Would need help based on below as what is the query sent for this so that based on the query could be indexed using the below https://oakutils.appspot.com/generate/index From logs:-org.apache.jackrabbit.oak.plugins.index.Cursors$TraversingCursor Traversed 15000 nodes with filter Filter(query=select [jcr:path], [jcr:score], from [nt:base] as...

Views

104

Likes

0

Replies

4
Re: AEM6.5 how to get user details and the groups the use...
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
I did the below to solve the issue function getLoggedInUserID() {var currentUserId = "";var currentUserInfo;var CURRENT_USER_JSON_PATH = Granite.HTTP.externalize('/libs/granite/security/currentuser.json');var result = Granite.$.ajax({type: "GET",async: false,url: CURRENT_USER_JSON_PATH});if (result.status === 200) {currentUserInfo = JSON.parse(result.responseText);currentUserId = currentUserInfo.authorizableId;}return currentUserId;} function getUserGroups(userID){var isMemberOfGroupEveryOne=fal...

Views

133

Likes

0

Replies

0
AEM6.5 how to get user details and the groups the user is associated to in author environment
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi, Once any user logs in to the author environment how could I get the details of the groups the user is member of. I am using js so wanted to check if there is any json available through which I could get this details. Instead of me building a new code for this. I noticed that for authorizables.json we need to provide the username.http://localhost:4502/bin/security/authorizables.json?filter=username&_charset_=utf-8 Now if is the case i would need a way to find the user name in the js and then ...

Views

183

Likes

0

Replies

3
Re: AEM6.5 JavaScript error "cannot read property" on browser console
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
When I added the rule in dispatcher the errors got resolved /0002 { /type "allow" /url "/etc.clientlibs/*" }

Views

155

Likes

0

Replies

0
Re: AEM6.5 console error 404 for clientlibrarymanager
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
When I added the rule in dispatcher the errors got resolved .Is this the right fix, cannot I do some changes at aem publish instance which can resolve the issue instead at dispatcher. /0002 { /type "allow" /url "/etc.clientlibs/*" } Please provide inputs . Thanks

Views

147

Likes

0

Replies

0
AEM6.5 JavaScript error "cannot read property" on browser console
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi, I am getting the below console error for MIME type ('text/html') is not a supported. Could you please provide input as how could I resolve it. 1>StoreMgr undefined:- script from location :- /libs/cq/personalization/widgets.min.js 2>Namespace undefined:- script from location /libs/cq/analytics/widgets.min.jsThanks

Views

201

Likes

0

Replies

3
AEM6.5 console error for MIME type ('text/html') is not a supported
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi , I am getting the below console error how could I solve this issue. Refused to apply style from '' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled Thanks

Views

156

Likes

0

Replies

1
AEM6.5 console error 404 for clientlibrarymanager
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi , I am getting the below error in console and is related to clientlibrarymanager.min.js Could you please provide inputs as how could I resolve this.It shows an error as console.log("LibraryManager: --\x3e evaluating js include failed: ",a)}else document.writeln('\x3cscript src\x3d"'+a+'" type\x3d"text/javascript"\x3e\x3c/script\x3e');else"css"===c?(c=document.getElementsByTagName("head")||document.getElementsByTagName("*"),c=c[0],f=document.createElement("link"), Thanks

Views

175

Likes

0

Replies

2
Re: AEM 6.3 TO detect from desktop or mobile from which t...
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Thanks for the input. Agree to your comments , could you provide any sample code will help me to write this

Views

216

Likes

0

Replies

0
AEM 6.3 TO detect from desktop or mobile from which the request came in java?
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi , I am using a component twice due to mobile and desktop views .Due to which the same JavaScript is getting called twice.I am using JavaScript to hide based on css. I wanted tp know if desktop or mobile view in java code, in this way i will be able to call the component only once based on views using slightly test logic. Please let me know how to achieve it Thanks

Views

264

Likes

0

Replies

4
AEM6.3 Paste not appearing in author for component to copy in touch ui on a page
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi, Could some help as how to resolve this issue.Issue:-I am using aem6.3 on touch ui page when i copy component ,then paste option does not come up Workaround:-As soon as, I do right click on the page, the paste icon immediately appears. And also, when we click on the “Drag Components here” (parsys) then the paste icon appears on all the components. Expected:-Paste icon must appear as soon as I copy any component ,on first click. like it works on classic UI Step1: Copy the desired component. St...

Views

266

Like

1

Replies

5
Re: AEM 6.3 with cf8 package is causing issue when using Calc function in css
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Any inputs from any one

Views

158

Likes

0

Replies

0
How to move common code in sightly html file to different files
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi, I have a common piece of code in sightly html ,instead of writing the repetitive code can i put this in a different file and just invoke are there any other ways . Please suggest. In /apps/project/testcomponent/testcomponent.htmlin the testcomponent.html:- dd cc ff ... dd cc ff ...I tried:-To put this file in file in /apps/project/testcomponent/abc.htmlso abc.html had:- dd cc ff Now i modified in testcomponent.html:- ......This throws error while page renderPlease suggest how to solve...

Views

231

Likes

0

Replies

2
Re: AEM 6.3 with cf8 package is causing issue when using Calc function in css
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Any inputs from any one

Views

176

Likes

0

Replies

0
AEM 6.3 with cf8 package is causing issue when using Calc function in css
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi , When i am using AEM 6.3 with service pack1 and cf8 package installed.I want to apply clip-path: polygon for creating a cut angle at right bottom. works:-When i apply the css inline in the html that is Stay in the moment. issue:-But when i apply to css code.bottom-right {p {clip-path:polygon(0 100%, 0 0, 100% 0, 100% calc(100% - 36px), calc(100% - 65px) 100%);}} After the page is render it is getting converted to clip-path:polygon(0 100%, 0 0, 100% 0, 100% calc(64%), calc(35%) 100%); Here it...

Views

204

Likes

0

Replies

2
Re: How to create a certain angle on pixel difference on a image text using image component
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Any inputs from any one

Views

211

Likes

0

Replies

0
How to create a certain angle on pixel difference on a image text using image component
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi, I have to create a angle of 45* degree cut at the edge of an text and also 100 pixel distance using the text image component Please let me know how to achieve it through css or js. Once achieved what tools could be used to measure the accuracy of angle is it exactly 45* degrees or not and is it 100pixel or not?? Below is the text on text image component required. Thanks

Views

223

Likes

0

Replies

2
authentication by SSO for different AEM applications for different portals
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi , Wanted to know the procedure as how to authenticate with SSO so that a user will able to login once and have credentials carry over to different platforms on AEM instance for different portals. So that I am not required to login multiple times Note:- Also in case we integrate login with PING then how to do SSO . Thanks

Views

182

Likes

0

Replies

1
Getting started with Experience Fragments
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi , I want to start using Experience Fragments. Could some one guide what is Experience Fragments and what all info i need to know before using that Thanks

Views

215

Likes

0

Replies

2
Re: MockitoJUnitRunner for junit in AemContext for Resour...
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
I was able to solve this /* ResourceBundle.getString(String) is a final method .So inorder to solve this *issue we create a object and hardcode the required key and value */In the above method we must replace key with TEST.STRING import org.apache.sling.i18n.ResourceBundleProvider;import static org.mockito.Mockito.when;@MockResourceBundleProvider resourceBundleProvider;context.bundleContext().registerService(ResourceBundleProvider.class.getName(), resourceBundleProvider, null);when(resourceBundl...

Views

215

Like

1

Replies

0
MockitoJUnitRunner for junit in AemContext for ResourceBundle fails
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi , I am using MockitoJUnitRunner for junit4 .I getting error when the code ResourceBundle that is there in component class when using junit. Please provide inputs as how to resolve the issue Component class:-import java.util.*;public class ComponentClass extends WCMUsePojo{public void init(final SlingHttpServletRequest slingRequest) {slingRequest.getResourceBundle(locale).getString("TEST.STRING");} Junit class:-0@RunWith(MockitoJUnitRunner.Silent.class)public class testclass {@rulepublic final...

Views

236

Likes

0

Replies

1
MockitoJUnitRunner for junit in AemContext User adapation fails
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi , I am using MockitoJUnitRunner for Junit . I having the below code in java :- In the below TestUser class on the line resolver.adaptTo(User.class) it fails and is always null how to resolve it import org.apache.jackrabbit.api.security.user.User;import org.apache.sling.api.resource.ResourceResolver;public class TestUser {private final ResourceResolver resolver;private final User user;public TestUser(final ResourceResolver resolver) {this.resolver = resolver;this.user= resolver.adaptTo(User.cl...

Views

213

Likes

0

Replies

1
Re: Creating index for query in aem6.3 which has a path t...
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi, Could you please provide a sample as how this will look

Views

238

Likes

0

Replies

0
Re: Creating index for query in aem6.3 which has a path t...
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Thanks for the input. The data is small subset, but like I mentioned if the query for 2 authors could be different based on path. Then how will be index be for this. Should I create 4 different index or just 1 index and say if path could support any wildcard path like /content/product/* {path=/content/product/abc1, p.limit=-1, property.value=/apps/components/test1, property=sling:resourceType, type=nt:unstructured}{path=/content/product/def2, p.limit=-1, property.value=/apps/components/test1, pr...

Views

244

Likes

0

Replies

0
Creating index for query in aem6.3 which has a path that is dynamic
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi,I have component that sends a query based on the path selected from dialog .This is basically a case when we need to generate reports data based on different path author wants like the author could select path: /content/project/abcthen they could select a different path like : /content/project/def Then we would get a different report. Since a query may slow down the system based on the results it needs to get. Please let me know what should be approach for this as path is dynamic here How cou...

Views

265

Likes

0

Replies

6
Re: MockitoJUnitRunner bind for WCMUsePojo fails for curr...
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Thanks for looking into it.I see that local build on cmd is working properly like IDE no issues only when the build is ran on CI tool then binding fails and i need to have check for binding.for CI tool Thanks

Views

211

Likes

0

Replies

0
Re: MockitoJUnitRunner bind for WCMUsePojo fails for curr...
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi ,Thanks for looking into .Could you please help if possible without more details on CI tool as I see when i see JMockit then CI is able to get those current page and resource without any issue. Not sure when i am doing binding with MockitoJUnitRunner then it is not picking the binding values,till i do something like currentPage=getCurrentPage()if(null==currentPage){ currentPage=(Page)this.get(WCMBindings.CURRENT_PAGE, Page.class);} @RunWith(JMockit.class) import com.adobe.cq.sightly.WCMUsePoj...

Views

228

Likes

0

Replies

0