since ‎08-08-2012
‎10-12-2019
Yogesh_Upadhyay
Level 5
Re: How to make case in sensitive url in AEM 6.1
Avatar

Yogesh_Upadhyay

Yogesh_Upadhyay
- Adobe Experience Manager
I think you can do this in apachehttps://www.a2hosting.com/kb/developer-corner/apache-web-server/using-the-mod-speling-apache-moduleOr you just to have to make sure that all resource path is in lower case and you can do http://stackoverflow.com/questions/2923658/convert-to-lowercase-in-a-mod-rewrite-ruleYogesh

Views

642

Likes

0

Replies

0
Re: After deploying bundle websites are not coming
Avatar

Yogesh_Upadhyay

Yogesh_Upadhyay
- Adobe Experience Manager
Hello,I have seen this issue in AEM6.1 with SP1 where bundle with SNAPSHOT version do not get updated after deploying code. This happens randomly. You might want to create DayCare ticket for this issue. As a workaround just restart "Jcr Installer" bundle or change your bundle version number and redeploy.Yogesh

Views

267

Likes

0

Replies

0
Re: Session handling across the nodes and web server
Avatar

Yogesh_Upadhyay

Yogesh_Upadhyay
- Adobe Experience Manager
Hello Tuhin,Using server side session is not recommended in AEM, you can not cache pages and use proper load balancing if server side session is enabled. Would recommend to save this data to either client context or cookie or query param or Use some kind of session storage (couch base or something). Long run it will help you.Yogesh

Views

1.8K

Likes

0

Replies

2
Re: Multiple implementation of a Sling Service
Avatar

Yogesh_Upadhyay

Yogesh_Upadhyay
- Adobe Experience Manager
Hello Jitendra,Just curious if this is what you actually want ? With service ranking, your other service will not get picked and it defeats purpose of design to interface.Yogesh

Views

363

Likes

0

Replies

0
Re: Move Component which are included in page?
Avatar

Yogesh_Upadhyay

Yogesh_Upadhyay
- Adobe Experience Manager
As Every one mentioned you can not remove component included though cq:include however you can hide them using JS Or JSP based on certain condition.

Views

231

Likes

0

Replies

0
Re: How to acces annotation properties
Avatar

Yogesh_Upadhyay

Yogesh_Upadhyay
- Adobe Experience Manager
You can also do something like@Activate protected void activate(final Map config) { String myvar = PropertiesUtil.toString(config.get(PROP_NAME),DEFAULT_VALUE); }

Views

189

Likes

0

Replies

0
Re: Persistance Error creating new Group from UserManager (ResourcerResolver.commit())
Avatar

Yogesh_Upadhyay

Yogesh_Upadhyay
- Adobe Experience Manager
Do something like this, I think subservice logic is not working in AEM 6.1 (It used to work in AEM6.0)@Reference ResourceResolverFactory rrfac; ResourceResolver rr=null; Map authInfo = new HashMap(); //Change this code in future to use read only user authInfo.put(ResourceResolverFactory.USER_IMPERSONATION,"WriteUser"); rr = rrfac.getAdministrativeResourceResolver(authInfo); //Your Logic rr.commit();

Views

282

Likes

0

Replies

0
Re: problem instantiating osgi bundle sightly helper java class
Avatar

Yogesh_Upadhyay

Yogesh_Upadhyay
- Adobe Experience Manager
Hello Swathi,1) Does above code works when you use it in OOTB AEM without sprint MVC ?2) What is resourceSuperType of component for which you are adding this script ? (Not sure why you are using )3) Does it works if you use JS Use instead ?Yogesh

Views

556

Likes

0

Replies

0
Re: Accessing CQ component
Avatar

Yogesh_Upadhyay

Yogesh_Upadhyay
- Adobe Experience Manager
Hello Manju,You can create a sling servlet as well that will read data and return Modified JSON view of page (http://sling.apache.org/documentation/the-sling-engine/servlets.html)If you want a component to to accessible like JSON then create json.jsp under your component, write logic to render json output for that component, create a node of type cq:Page under say /etc/something with default redering as JSON based on above resource type. And then from your e commerce system call /etc/something p...

Views

249

Likes

0

Replies

0
Re: close resourceResolver
Avatar

Yogesh_Upadhyay

Yogesh_Upadhyay
- Adobe Experience Manager
Hello,No. In theory you only have to close resource resolver (Or admin session) if you are creating one using dependency injection or through service.Yogesh

Views

311

Likes

0

Replies

0
Re: Authorization - Permissions for public and secure portions of site
Avatar

Yogesh_Upadhyay

Yogesh_Upadhyay
- Adobe Experience Manager
Rohit,If user do not have access to page then they get 403 status code. But since for CQ no access = pages does not exist, thats why you are seeing 404 page. You can always extend your 404 under /apps/sling/servlet/errorhandler/default.jsp and 404.jsp to show correct behavior. You can also manage your custom redirect or pop up here.Sample code snippet for default.jsp int statusCode = (scObject != null) ? scObject.intValue() : HttpServletResponse.SC_INTERNAL_SERVER_ERROR; if(statusCode==404){ boo...

Views

207

Likes

0

Replies

0
Re: Dispacter rendering the contents with mime type text/plain instead of text/html
Avatar

Yogesh_Upadhyay

Yogesh_Upadhyay
- Adobe Experience Manager
Hello,Check your mime_type file and make sure that for html you have added correct Mime Type. Some time it is in httpd.conf as well. Can you also check if publisher is returning correct Mime type ?Yogesh

Views

231

Likes

0

Replies

0
Re: Why are there 2 Asset classes in 5.6.1? When should you use them?
Avatar

Yogesh_Upadhyay

Yogesh_Upadhyay
- Adobe Experience Manager
http://dev.day.com/docs/en/cq/current/javadoc/com/day/cq/dam/api/Asset.html might be deprecated in future.Yogesh

Views

283

Likes

0

Replies

0
Re: How to set access for created users programatically
Avatar

Yogesh_Upadhyay

Yogesh_Upadhyay
- Adobe Experience Manager
Please check http://wemcode.wemblog.com/add-acl-to-node if that helps.Yogesh

Views

380

Likes

0

Replies

0
Re: Disable Login Autocomplete for user name
Avatar

Yogesh_Upadhyay

Yogesh_Upadhyay
- Adobe Experience Manager
Todd, autocomplete="off" should work. Can you make sure using firebug that there is no other CSS overriding this behavior ?Yogesh

Views

222

Likes

0

Replies

0
Re: Reverse replication error
Avatar

Yogesh_Upadhyay

Yogesh_Upadhyay
- Adobe Experience Manager
How about com.day.cq.wcm.workflow.process.ReverseReplicateProcess under HOST:PORT/system/console/components You can do browser search under components to find that.Yogesh

Views

239

Likes

0

Replies

0
Re: Reverse replication error
Avatar

Yogesh_Upadhyay

Yogesh_Upadhyay
- Adobe Experience Manager
From log it looks like com.day.cq.wcm.workflow.process.ReverseReplicateProcess is missing in your instance. Can you check if all bundles are active and you can find this under HOST:PORT/system/console/components and it is active.Yogesh

Views

213

Likes

0

Replies

0
Re: Reverse replication error
Avatar

Yogesh_Upadhyay

Yogesh_Upadhyay
- Adobe Experience Manager
Can you please make sure that you have set up your reverse replication properly ?[1] http://dev.day.com/docs/en/cq/current/deploying/replication.htmlAlso can you also post your complete log fragment at a time reverse replication is triggered ? What version of CQ are you using ?Yogesh

Views

234

Likes

0

Replies

0
Re: Accessing a repository via JNDI is NOT working
Avatar

Yogesh_Upadhyay

Yogesh_Upadhyay
- Adobe Experience Manager
Hello,It is not recommended to use JNDI to access repository outside CRX. Please use WebDav instead. Here is example http://wemcode.wemblog.com/accessrepository This will be as simple as Repository repository = JcrUtils.getRepository("http://localhost:7402/crx/server"); Also make sure that you have required jar files in your class path.You might also want to see http://forums.adobe.com/message/4734716 in case you need some additional jar files in your standalone application classpath.Yogesh

Views

404

Likes

0

Replies

0
Re: How to set access for created users programatically
Avatar

Yogesh_Upadhyay

Yogesh_Upadhyay
- Adobe Experience Manager
Sridhar,I guess it is same question about assigning ACL to Principal (User or Group). Here is example http://wemcode.wemblog.com/add-acl-to-node. Best practice is,1) Create Group (Or roles)2) Assign ACL to Group3) Create User4) Assign User to Group.Yogesh

Views

378

Likes

0

Replies

0
Re: Marketing cloud node created after uninstalling Geometrixx
Avatar

Yogesh_Upadhyay

Yogesh_Upadhyay
- Adobe Experience Manager
Hello Divya,Unfortunately marketing node is not part of that package that why when you uninstall geometrixx package that node is still there. We deleted that node manually from site admin. I will suggest you to create a daycare ticket with Adobe to include this filter as well, as part of Geometrixx all package.Yogesh

Views

214

Likes

0

Replies

0
Re: DAM Image functionality Customization- Image Transparency, Image Scaling and Sharpening
Avatar

Yogesh_Upadhyay

Yogesh_Upadhyay
- Adobe Experience Manager
Hello Nitin,Yes you can do that. Here is one example http://www.wemblog.com/2013/01/how-to-associate-cug-with-dam-asset-in.html same way you can create your own property.Yogesh

Views

233

Likes

0

Replies

0
Re: nodes checked in, checkout out - what is this?
Avatar

Yogesh_Upadhyay

Yogesh_Upadhyay
- Adobe Experience Manager
It is used during versioning of node http://www.day.com/specs/jcr/2.0/15_Versioning.htmlYogesh

Views

295

Likes

0

Replies

0
Re: @Reference is not working getting null
Avatar

Yogesh_Upadhyay

Yogesh_Upadhyay
- Adobe Experience Manager
In Java recommended approach is to use @reference to get a service reference. If you are getting null for resolverFactory in your service (Your class should be service as well) please create a daycare ticket with steps to reproduce this issue. Other way to get a reference would be in your activate method of service (Your class) using bundlecontext (Similar to this http://www.knopflerfish.org/releases/current/docs/javadoc/org/osgi/framework/BundleContext.html#getService(org.osgi.framework.Service...

Views

701

Likes

0

Replies

0
Re: LDAP Authentication with Group Membership
Avatar

Yogesh_Upadhyay

Yogesh_Upadhyay
- Adobe Experience Manager
Diana,For that you might have to wither extend login module and use your own on top of LDAP one (And let that module create user or group) or use http://wem.help.adobe.com/enterprise/en_US/10-0/core/administering/ldap_authentication.html#Callbacks feature. In this you can disable User sync and then use only Group sync to create user.Yogesh

Views

292

Likes

0

Replies

0
Re: How to get the number of times a page got viewed in CQ5.6.1 programatically from CQAnalytics or sitecatalyst
Avatar

Yogesh_Upadhyay

Yogesh_Upadhyay
- Adobe Experience Manager
If you have access to external analytic service API to pull data. You can show that in author using Impression API in CQ. Example http://www.wemblog.com/2014/11/how-to-use-impression-service-in-cqaem.htmlYogesh

Views

453

Likes

0

Replies

0
Re: How do I import Twitter's new JSON feed into AEM?
Avatar

Yogesh_Upadhyay

Yogesh_Upadhyay
- Adobe Experience Manager
Scott is right. You have to use Oauth to get authenticated with twitter API to get JSON feed. We ended up using https://code.google.com/p/oauth-signpost/ to establish that connection. Hope it will help.Yogesh

Views

486

Likes

0

Replies

0
Re: unable to get maven to compile JSPs
Avatar

Yogesh_Upadhyay

Yogesh_Upadhyay
- Adobe Experience Manager
Personally I have never used jspc to compile my jsps during build time due to some reasons. I tried it today and it seems to be working for me with following dependencies http://wemcode.wemblog.com/parent-pomAnd following plugin definition maven-resources-plugin true copy-resources generate-sources copy-resources ${project.build.directory}/jsps-to-compile jcr_root apps/** libs/foundation/global.jsp org.apache.sling maven-jspc-plugin 2.0.6 compile-jsp jspc false ${proj...

Views

394

Like

1

Replies

0
Re: unable to get maven to compile JSPs
Avatar

Yogesh_Upadhyay

Yogesh_Upadhyay
- Adobe Experience Manager
Yes xssAPI is part of which is already included in /libs/foundation/global.jsp so, including /libs/foundation/global.jsp should work.http://dev.day.com/docs/en/cq/current/javadoc/com/day/cq/wcm/tags/DefineObjectsTag.htmlCan you addcom.day.cq.wcmcq-wcm-taglib 5.6.4 provided In your pom.xml to see if it help to resolve compilation issue during build. Note that this is added in later version of CQ so if you are trying to reference old version of cq-wcm-taglib you might not find it.Yogesh

Views

398

Likes

0

Replies

0
Re: unable to get maven to compile JSPs
Avatar

Yogesh_Upadhyay

Yogesh_Upadhyay
- Adobe Experience Manager
Hello,XssAPI should be part of /libs/foundation/global.jsp. Can you please make sure that you have <%@include file="/libs/foundation/global.jsp"%> included in your JSP file. Are you trying to compile your JSP from eclipse or as part of build ? Or you are getting this error while rendering a page after deployment ? Trying to understand pom.xml role here for jsp.Yogesh

Views

411

Likes

0

Replies

0