since ‎24-11-2010
‎10-12-2019
justin_at_adobe
Employee
Re: querybuilder search on Property case insensitive
Avatar

justin_at_adobe

Employee

justin_at_adobe
- Adobe Experience Manager
As I understand it, the issue is not really XPath vs. SQL2, but really with the QueryBuilder. But you might want to ask in the other thread to be sure.

Views

1.5K

Likes

0

Replies

0
Re: querybuilder search on Property case insensitive
Avatar

justin_at_adobe

Employee

justin_at_adobe
- Adobe Experience Manager
farahz913310​ Based on the discussion in Re: AEM 6.2 "fn:lowercase" is not working (and some other linked threads), it appears that the function described in my original "correct" answer (from 2015) stopped working with AEM 6.2 and was never officially supported. That thread has a proposed solution which does (apparently) work in 6.2 and beyond.

Views

1.5K

Likes

0

Replies

0
Re: Twitter Feed Component from ACS commons on AEM 6.3 not working
Avatar

justin_at_adobe

Employee

justin_at_adobe
- Adobe Experience Manager
I'm not sure what you mean by "API constraints". That bundle works fine on AEM 6.3. Same thing with "JSP used in the component". There's no requirements put on the JSP (or even a requirement to use JSP) imposed by the ACS AEM Commons Twitter integration.But if this is the path you want to go down, that's ultimately up to you. My guess is that you are missing the service user configuration. You said you created the service user, but didn't say whether or not you created the service user configura...

Views

865

Likes

0

Replies

0
Re: Twitter Feed Component from ACS commons on AEM 6.3 not working
Avatar

justin_at_adobe

Employee

justin_at_adobe
- Adobe Experience Manager
It would be better to just deploy the ACS AEM Commons package rather than copying the code. If you have an actual problem using the ACS AEM Commons package, you should report it using GitHub Issues.

Views

859

Likes

0

Replies

0
Re: How to check sitemap on localhost using ACS common Sitemap OSGi Service ?
Avatar

justin_at_adobe

Employee

justin_at_adobe
- Adobe Experience Manager
The SiteMap servlet gets configured with the resource (component) type, not the template path.Once configured, you can request http://localhost:4502/.sitemap.xmlFor example, with weretail, you would configure the servlet with a resource type of weretail/components/structure/page (see screenshot below) and then request http://localhost:4502/content/we-retail/us/en.sitemap.xml

Views

1.8K

Like

1

Replies

1
Re: SiteMap for different locale / domain
Avatar

justin_at_adobe

Employee

justin_at_adobe
- Adobe Experience Manager
And yes, to Peter's point, the best place to discuss this is in GitHub Issues, not the AEM forums.

Views

1.2K

Like

1

Replies

0
Re: SiteMap for different locale / domain
Avatar

justin_at_adobe

Employee

justin_at_adobe
- Adobe Experience Manager
This is indeed a limitation -- if both /content/my_company/en_us and /content/my_company/es_es have the same resource type, then they will share the same sitemap servlet instance and thus the same externalizer name.There was some interest about two years ago to make this more flexible, but the issue didn't get worked on and became stale. See https://github.com/Adobe-Consulting-Services/acs-aem-commons/issues/652There may also be an opportunity to use the wcm.io URL Handler (http://wcm.io/handler...

Views

1.2K

Likes

0

Replies

0
Re: AEM 6.0 Custom Authentication handler
Avatar

justin_at_adobe

Employee

justin_at_adobe
- Adobe Experience Manager
You should be able to do this without any customization in AEM by integrating AEM with ADFS via SAML. I don't know the details of how to configure domain authentication (which I think is what you are describing) in ADFS, but I suspect it is fairly straightforward.FWIW, inside Adobe we do something similar, although we use Okta, not ADFS. Although we require MFA for most internal applications so even though I never enter a password when I'm on the corporate network, I have to accept a push messag...

Views

1.1K

Likes

0

Replies

0
Re: AEM Sling custom injector @Source issue.
Avatar

justin_at_adobe

Employee

justin_at_adobe
- Adobe Experience Manager
This is an not the way Sling Models works by default. If there is no @Source annotation (or no custom injector which provides the source value), all injectors are checked. The @Source annotation is just used to refine the scope of annotations checked. You can certainly achieve what you are describing in your custom injector by returning null if the annotation isn't present.

Views

1.0K

Like

1

Replies

0
Re: How to Rewrite  Plain text output not <HTML attribute>
Avatar

justin_at_adobe

Employee

justin_at_adobe
- Adobe Experience Manager
As far as I know, there's no existing Transformer which does what you are describing, so you would need to write one.That said, if you are just doing String substitution across the entire HTML document and don't care about the semantic meaning of specific HTML elements, then it is possible that the Rewriter is not the right solution for you and a simple Servlet Filter would be more appropriate (and be slightly simpler to write).

Views

755

Likes

0

Replies

0
Re: Is there a way to skip the pipelines in sling rewriter?
Avatar

justin_at_adobe

Employee

justin_at_adobe
- Adobe Experience Manager
Ah, I see what you mean now. No, there's no standard approach to do this. If the transformers are all involved are under your control, however, you could accomplish this by sharing some state between the transformers, e.g. set some request attribute in external-tab and then have link-rewrite look at that request attribute to decide whether or not to do any rewriting.

Views

860

Like

1

Replies

0
Re: Is there a way to skip the pipelines in sling rewriter?
Avatar

justin_at_adobe

Employee

justin_at_adobe
- Adobe Experience Manager
I don't think you are using the terminology correctly. For a single request, only a single pipeline will be used, so there are no 'remaining' pipelines.I suspect what you mean to ask if whether a component within a pipeline can remove events so that they are not passed to subsequent components within the pipeline. If so, the answer is yes. Just don't call the corresponding SAX method on the next component. acs-aem-commons/StylesheetInlinerTransformerFactory.java at master · Adobe-Consulting-Serv...

Views

891

Like

1

Replies

0
Re: AEM LDAP VS SAML VS Custom Login Module
Avatar

justin_at_adobe

Employee

justin_at_adobe
- Adobe Experience Manager
I'd suggest always using SAML. I think you'd be hard pressed to find an IDP on the market today which doesn't support SAML.

Views

2.7K

Likes

0

Replies

0
Re: Preventing the JSESSIONID cookie from being set based on another cookie
Avatar

justin_at_adobe

Employee

justin_at_adobe
- Adobe Experience Manager
Given that nothing in AEM uses JavaEE Sessions, your custom code must be creating those sessions. Just don't do that if this other cookie is set.

Views

1.1K

Likes

0

Replies

0
Re: SAML Linkage error.
Avatar

justin_at_adobe

Employee

justin_at_adobe
- Adobe Experience Manager
First off, since AEM supports SAML already, this is all unnecessary.In this particular case, you are likely embedding classes which should not be embedded because they are available from the JRE, via the system bundle. You are also embedding log bundles which are already available inside AEM. I'd suggest removing all those embedded jars and only embedding the ones which are strictly necessary.

Views

848

Likes

0

Replies

0
Re: Transformer Factory options
Avatar

justin_at_adobe

Employee

justin_at_adobe
- Adobe Experience Manager
Here's a trivial example of a Transfomer which adds "HELLO" inside comments: https://gist.github.com/justinedelson/cdcf502413740bef9539faf74385a599

Views

823

Likes

0

Replies

0
Re: Transformer Factory options
Avatar

justin_at_adobe

Employee

justin_at_adobe
- Adobe Experience Manager
Right, like I said, you wouldn't see the commented elements in the startElement(). You will see them (as text) in the characters() method. startElement() is useless for this use case as those aren't actually elements. They are text (character data in XML parlance).

Views

754

Likes

0

Replies

0
Re: Transformer Factory options
Avatar

justin_at_adobe

Employee

justin_at_adobe
- Adobe Experience Manager
Hi,This would theoretically be possible but it requires your Transformer implement the characters() method and parse the contents of that text yourself. If the contents of these comments are regular, you might be able to handle this with regex, but if the HTML is "normal" HTML, it is far from regular enough to be handled in this way.If you are going to go down this path, I'd highly recommend paying attention to slides 19 through 22 of http://www.slideshare.net/justinedelson/mastering-the-sling-r...

Views

767

Likes

0

Replies

0
Re: Can i clear only the AEM level SAML Assertion and not the IDP SAML session.
Avatar

justin_at_adobe

Employee

justin_at_adobe
- Adobe Experience Manager
It would help if you could describe what end result you are trying to accomplish.Based on your description, you will need to reconfigure your IDP. Because when a user logs out of AEM (and you don't have Single Logout Configured), the next request from the user will get redirected to the IDP and then the IDP response will include the assertion necessary for the user to be logged into AEM. If, in the interim, you reconfigure the IDP to no longer send the assertion to AEM, then the user won't be lo...

Views

698

Likes

0

Replies

0
Re: AEM SAML Authentication and Group assignation
Avatar

justin_at_adobe

Employee

justin_at_adobe
- Adobe Experience Manager
Yes, groups contained in the SAML assertion can be assigned to a user when the assertion is received if the SAML Authentication Handler is configured properly. See http://adobe.ly/1XJsIkQ.

Views

1.6K

Likes

0

Replies

0
Re: 403 Response From Adobe Experience Manager OAuth 2 Token Endpoint
Avatar

justin_at_adobe

Employee

justin_at_adobe
- Adobe Experience Manager
Just curious - which host?

Views

3.6K

Likes

0

Replies

2
Re: 403 forbidden error on dispacther url for j_security_check
Avatar

justin_at_adobe

Employee

justin_at_adobe
- Adobe Experience Manager
It is hard to tell from this information what is going on. You first need to determine whether or not that request is getting to AEM. You can check this by comparing the web server access logs with the AEM access log. It sounds like it isn't (but that warrants doublechecking) in which case you may have conflicting dispatcher rules. You can enable debug logging on the dispatcher module to confirm that the request is being rejected by the dispatcher.

Views

1.4K

Likes

0

Replies

0
Re: which is better for using external authentication with DB ?
Avatar

justin_at_adobe

Employee

justin_at_adobe
- Adobe Experience Manager
Regarding the first scenario, what I was trying to say is that you cannot get the full functionality of AEM without syncing users. I suppose in some limited use case, this might work, but I've rarely see a case where only authentication was necessary or appropriately. After all, if you are authenticating users, it is usually to give them some kind of value in having done that authentication, which means some level of authorization as well.

Views

821

Likes

0

Replies

0
Re: which is better for using external authentication with DB ?
Avatar

justin_at_adobe

Employee

justin_at_adobe
- Adobe Experience Manager
Hi,I don't think the first scenario is really work considering.For the second scenario, you should be using an Oak Identity Provider. No Custom Login Module would be necessary.Regards,Justin

Views

736

Likes

0

Replies

0
[ANN] ACS AEM Commons 2.3.0 Released
Avatar

justin_at_adobe

Employee

justin_at_adobe
- Adobe Experience Manager
I'm pleased to announce the release of ACS AEM Commons 2.3.0New Features in ACS AEM Commons 2.3.0 include:Support for raw Twitter data in Twitter feeds (largely for custom components).Support for limiting the number of components in parsys components.A lightweight cache for md5 hashes on Versioned Client Libraries.Support for DAM Assets in SitemapsAs well as a number of bug fixes largely around the multipanelfield widget and Ensure Oak Index features. Thanks to the following individuals for thei...

Views

925

Likes

0

Replies

0
Re: AEM 6.0 Granite UI dynamic drop down value from servlet
Avatar

justin_at_adobe

Employee

justin_at_adobe
- Adobe Experience Manager
Did you look at the DataSource examples?

Views

770

Likes

0

Replies

0
Re: How to load component-specific resource bundle for translation?
Avatar

justin_at_adobe

Employee

justin_at_adobe
- Adobe Experience Manager
Hi,It looks like there needs to be an additional mixin which allows the sling:basename property on nt:file nodes. You can create your own mixin to do that, but please also file a DayCare ticket so this gets addressed in the product.Regards,Justin

Views

787

Likes

0

Replies

0
Re: 403 Response From Adobe Experience Manager OAuth 2 Token Endpoint
Avatar

justin_at_adobe

Employee

justin_at_adobe
- Adobe Experience Manager
Hi,To be honest, I'm not very familiar with Postman's OAuth2 support. Can you provide a complete dump of the POST request to /oauth/token? My guess is that this is the Referrer Filter, but I'm not sure.Regards,Justin

Views

3.6K

Like

1

Replies

1
Re: Payment gateways =>Native eCommerce implementation
Avatar

justin_at_adobe

Employee

justin_at_adobe
- Adobe Experience Manager
Hi,As Scott wrote above and as is documented a few times on https://docs.adobe.com/docs/en/aem/6-1/administer/ecommerce/concepts.html, the JCR commerce implementation is for demo and instructional purposes. It is not intended to be used in production. In your particular case, you could use it as a basis to build a custom commerce implementation which met all of your business requirements. Although more likely (again, to reiterate what Scott wrote) you would be best served by working with Adobe C...

Views

1.0K

Likes

0

Replies

0
Re: ThreadResourceResolver - is it safe to use and what are its limits?
Avatar

justin_at_adobe

Employee

justin_at_adobe
- Adobe Experience Manager
Hi,I assume you are referring to https://docs.adobe.com/docs/en/aem/6-0/develop/ref/javadoc/com/adobe/granite/resourceresolverhelper/ResourceResolverHelper.html. If so, this really only works in a request context in which case it will be the ResourceResolver associated with the current request.So:1) Yes it will always be non-null in a request context.2) The permissions of the current user.3) Depends upon the permissions of the current user.Regards,Justin

Views

641

Likes

0

Replies

0