Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

lukaszm
Community profile lukaszm Level 5
Technical Lead
Poland
17 BADGES
Level 5

Level 5

Learn more
Joined the community 04-10-2018 11:49:38 PM
Online
Top badges earned by lukaszm
Customize the badges you want to showcase on your profile
Re: Connected Asset Configuration User Group for RemoteDAM
Avatar
Give Back 50
Level 5
lukaszm
Level 5

Likes

73 likes

Total Posts

56 posts

Correct reply

22 solutions
Top badges earned
Give Back 50
Boost 50
Affirm 10
Give Back 25
Boost 25
View profile
lukaszm
- Adobe Experience Manager
Hi @rajaram33, I am not sure if you are using any SP on your AEM 6.5. I did some tests on AEM 6.5 with SP10, and I have following observation that I hope will help you. In general the key part for the user you are using, is to make sure that he has jcr:read and jcr:write permission to root / location of the repository. I've prepared simple group with read only access to main folder (apps, content, libs) and with jcr:write permission to /, and it works.Please have a look on below screen shot that...

Views

26

Likes

0

Replies

1
Re: Sling servlet with PUT method
Avatar
Give Back 50
Level 5
lukaszm
Level 5

Likes

73 likes

Total Posts

56 posts

Correct reply

22 solutions
Top badges earned
Give Back 50
Boost 50
Affirm 10
Give Back 25
Boost 25
View profile
lukaszm
- Adobe Experience Manager
Hi @rgravisankar, did you try to use http://localhost:4502/system/console/requests to check what is consuming your PUT request, you are sending from Postman? Could you share the output of recent request - this will be useful to figure out what could be the root cause of the issue. I would assume that your servlet has been successfully registered as an OSGi component, right?

Views

28

Likes

0

Replies

0
Re: [AEM-6.5.10] Page Editor: Page Title Not Centered
Avatar
Give Back 50
Level 5
lukaszm
Level 5

Likes

73 likes

Total Posts

56 posts

Correct reply

22 solutions
Top badges earned
Give Back 50
Boost 50
Affirm 10
Give Back 25
Boost 25
View profile
lukaszm
- Adobe Experience Manager
Hi @demobuster, I was able to get the same result on my local AEM 6.5.10, this looks like an issue in AEM, but I am not 100% that this has been introduced in SP10 or maybe in earlier version (like SP9). I can confirm that on AEM 6.5.8 it looks correct.If this is something important from your point of you than I would suggest to raise Adobe Support ticket with proper justification - to get this fixed.

Views

34

Likes

2

Replies

0
Re: How to edit product information in /etc/assets/[project_name].....
Avatar
Give Back 50
Level 5
lukaszm
Level 5

Likes

73 likes

Total Posts

56 posts

Correct reply

22 solutions
Top badges earned
Give Back 50
Boost 50
Affirm 10
Give Back 25
Boost 25
View profile
lukaszm
- Adobe Experience Manager Assets
Hi @RobertHarper, as far as I know the only OOTB interface apart of crx/de that will allow you create/modify/delete elements stored under /etc is Classic UI tools. You can access it under /miscadmin, e.g. http://localhost:4502/miscadmin. Please be aware that Classic UI is deprecated for a while and should not be consider as a long term solution. If above structure stores assets, than it could be good idea to move them under /content/dam - this is dedicated place in AEM to store and manage your a...

Views

33

Like

1

Replies

2
Re: Customized Rendition Servlet
Avatar
Give Back 50
Level 5
lukaszm
Level 5

Likes

73 likes

Total Posts

56 posts

Correct reply

22 solutions
Top badges earned
Give Back 50
Boost 50
Affirm 10
Give Back 25
Boost 25
View profile
lukaszm
- Adobe Experience Manager
Hi @kevingtan, it looks that there is a typo in your OSGi annotations. For jpeg and png you have sling.servlet.extension instead of sling.servlet.extensions. This could be the reason why your servlet is not used for jpeg extension. Your code should looks like this:@Component(service=Servlet.class, property={ "sling.servlet.methods=" + HttpConstants.METHOD_GET, "sling.servlet.extensions=xjpeg", "sling.servlet.extensions=jpeg", "sling.servlet.extensions=png", "sling.servlet.selectors=preset", "sli...

Views

35

Like

1

Replies

1
Re: onclick on button
Avatar
Give Back 50
Level 5
lukaszm
Level 5

Likes

73 likes

Total Posts

56 posts

Correct reply

22 solutions
Top badges earned
Give Back 50
Boost 50
Affirm 10
Give Back 25
Boost 25
View profile
lukaszm
- Adobe Experience Manager
Hi @odabio, in general your code looks correct. I was able to run it successfully on my local instance. Please keep in mind one thing, as this could be the reason why you're not seeing message printed in the console.Your code is looking for first element with class header__search, if for any reason you will have multiple elements with this class, onclick event will be registered for the first one only. But the first one not always needs to mean the one user is clicking.In other words please chec...

Views

51

Like

1

Replies

0
Re: Add member to group
Avatar
Give Back 50
Level 5
lukaszm
Level 5

Likes

73 likes

Total Posts

56 posts

Correct reply

22 solutions
Top badges earned
Give Back 50
Boost 50
Affirm 10
Give Back 25
Boost 25
View profile
lukaszm
- Adobe Experience Manager
Hi @DivyaTyagi, did you refreshed session before getting list of group members? Also could you please confirm that session you are using has permissions to add new user to the group?

Views

37

Like

1

Replies

1
Re: Add member to group
Avatar
Give Back 50
Level 5
lukaszm
Level 5

Likes

73 likes

Total Posts

56 posts

Correct reply

22 solutions
Top badges earned
Give Back 50
Boost 50
Affirm 10
Give Back 25
Boost 25
View profile
lukaszm
- Adobe Experience Manager
Hi @DivyaTyagi, looking on code you have shared, I have few observations:It looks that you are using 2 different resource resolver, in general this shoud not be an issue, assuming you have approprite level of permissions for both.// resource resolver #1 UserManager userManager = resourceResolverAddMember.adaptTo(UserManager.class); // resource resolver #2 Session currentSession = resourceResolver.adaptTo(Session.class);You are using cugGroup.getMembers(); to list group memebrs. This is fine, how...

Views

64

Like

1

Replies

3
Re: Applying tags to Asset folders
Avatar
Give Back 50
Level 5
lukaszm
Level 5

Likes

73 likes

Total Posts

56 posts

Correct reply

22 solutions
Top badges earned
Give Back 50
Boost 50
Affirm 10
Give Back 25
Boost 25
View profile
lukaszm
- Adobe Experience Manager
Hi @milieere, you can create custom metadata schema for folder. This will givie you ability to set tags or any other additionial metadata on folder level. There could be need to update/create new search index and/or extend filters section depending on setup of your schema. You can find more information about metadata schema for folder under: https://experienceleague.adobe.com/docs/experience-manager-65/assets/administer/metadata-config.html?lang=en#folder-metadata-schema

Views

46

Like

1

Replies

0
Re: Mocking JobManager in junit unit TEst
Avatar
Give Back 50
Level 5
lukaszm
Level 5

Likes

73 likes

Total Posts

56 posts

Correct reply

22 solutions
Top badges earned
Give Back 50
Boost 50
Affirm 10
Give Back 25
Boost 25
View profile
lukaszm
- Adobe Experience Manager
Hi @Dody, could you please try below option@Mock private JobManager jobManager; //... aemContext.registerService(JobManager.class, jobManager);

Views

82

Likes

0

Replies

1
Re: Users impersonation on Brand portal
Avatar
Give Back 50
Level 5
lukaszm
Level 5

Likes

73 likes

Total Posts

56 posts

Correct reply

22 solutions
Top badges earned
Give Back 50
Boost 50
Affirm 10
Give Back 25
Boost 25
View profile
lukaszm
- Adobe Experience Manager Assets
Hi @nawazme88, I do not think that Brand Portal is providing impersonation functionality. I did not found anything about impersonation under official documentation [1], also I did not found this kind of option on Brand Portal where I have access as Administrator group member.[1] https://experienceleague.adobe.com/docs/experience-manager-brand-portal/using/introduction/brand-portal.html?lang=en#PersonasTo be 100% sure you can also ask your AMS engineer dedicated to mange your Brand Portal.

Views

39

Like

1

Replies

0
Re: Possible to generate list of content fragments that have variations without editing or opening them?
Avatar
Give Back 50
Level 5
lukaszm
Level 5

Likes

73 likes

Total Posts

56 posts

Correct reply

22 solutions
Top badges earned
Give Back 50
Boost 50
Affirm 10
Give Back 25
Boost 25
View profile
lukaszm
- Adobe Experience Manager Assets
Hi @brianlplfinancial, you can try to run below SQL2 querySELECT * FROM [dam:Asset] AS cf WHERE ISDESCENDANTNODE([/content/dam]) AND cf.[jcr:content/contentFragment] = true AND cf.[jcr:content/model/variations/jcr:primaryType] IS NOT NULL

Views

52

Likes

3

Replies

1
Re: How can I access the latest dispatcher download?
Avatar
Give Back 50
Level 5
lukaszm
Level 5

Likes

73 likes

Total Posts

56 posts

Correct reply

22 solutions
Top badges earned
Give Back 50
Boost 50
Affirm 10
Give Back 25
Boost 25
View profile
lukaszm
- Adobe Experience Manager
@AEMWizard, you can download dispatcher module from https://experienceleague.adobe.com/docs/experience-manager-dispatcher/using/getting-started/release-notes.html?lang=en#helpful-resources

Views

78

Like

1

Replies

0
Re: JDK of Adobe AEM 5.6.1
Avatar
Give Back 50
Level 5
lukaszm
Level 5

Likes

73 likes

Total Posts

56 posts

Correct reply

22 solutions
Top badges earned
Give Back 50
Boost 50
Affirm 10
Give Back 25
Boost 25
View profile
lukaszm
- Adobe Experience Manager
Hi @Yuanhong, according to the documentation AEM 5.6.1 with SP2 is supporting Java 8 - in other words SP2 adds Java 8 support. Earlier versions (including CQ5) does not support Java 8.

Views

89

Like

1

Replies

0
Re: How to reference a static list for Form option component
Avatar
Give Back 50
Level 5
lukaszm
Level 5

Likes

73 likes

Total Posts

56 posts

Correct reply

22 solutions
Top badges earned
Give Back 50
Boost 50
Affirm 10
Give Back 25
Boost 25
View profile
lukaszm
- Adobe Experience Manager
Hi @odabio, I am not sure if this is one time action or you would like to maintain your list in the future, but you can consider below solutions that should allow you to automate list creation process.Data Importer functionality from ACS Commons - however it requires Excel file as an input - so you will need to transform your XML or JSON file into excel to use it.https://adobe-consulting-services.github.io/acs-aem-commons/features/mcp-tools/data-importer/index.htmlYou can create simple java clas...

Views

99

Like

1

Replies

0
Re: Assets Share Commons : The query read or traversed more than 10000 nodes Issue.
Avatar
Give Back 50
Level 5
lukaszm
Level 5

Likes

73 likes

Total Posts

56 posts

Correct reply

22 solutions
Top badges earned
Give Back 50
Boost 50
Affirm 10
Give Back 25
Boost 25
View profile
lukaszm
- Adobe Experience Manager
@AmanK24, could you please share query execution plan?

Views

182

Like

1

Replies

0
Re: How to enable Handle advance option in 'Goto Step' in AEM workflow
Avatar
Give Back 50
Level 5
lukaszm
Level 5

Likes

73 likes

Total Posts

56 posts

Correct reply

22 solutions
Top badges earned
Give Back 50
Boost 50
Affirm 10
Give Back 25
Boost 25
View profile
lukaszm
- Adobe Experience Manager
Hi @thatsmeadarsh, did you defined ECMA script or Rule Definition. This determines if GoTo will proceed or not. I do not think you should change PROPERTY_AUTO_ADVANCE manually for this specific step. Have a look into the documentation [1][1] - https://experienceleague.adobe.com/docs/experience-manager-65/developing/extending-aem/extending-workflows/workflows-step-ref.html?lang=en#goto-step

Views

108

Like

1

Replies

2
Re: How to sync /var folder
Avatar
Give Back 50
Level 5
lukaszm
Level 5

Likes

73 likes

Total Posts

56 posts

Correct reply

22 solutions
Top badges earned
Give Back 50
Boost 50
Affirm 10
Give Back 25
Boost 25
View profile
lukaszm
- Adobe Experience Manager
Hi @ForrestLi, in general folders you are referring to, should be created automatically during AEM setup process (first run of instance when repository structure is created). In that case following reasons came into my mind related to described problem:Someone removed folders manually or via code.Instance has not been created correctly.I can see below solutions:Recreate folder structure manually (respecting permissions that should be set against each folder).Create crx package on other instance ...

Views

73

Likes

2

Replies

0
Re: Assets Share Commons : The query read or traversed more than 10000 nodes Issue.
Avatar
Give Back 50
Level 5
lukaszm
Level 5

Likes

73 likes

Total Posts

56 posts

Correct reply

22 solutions
Top badges earned
Give Back 50
Boost 50
Affirm 10
Give Back 25
Boost 25
View profile
lukaszm
- Adobe Experience Manager
@AmanK24you can check index size and number of elements in index under /system/console/status-oak-index-stats, can you share query execution plan - this could be useful for further discussion.

Views

212

Like

1

Replies

2
Re: Assets Share Commons : The query read or traversed more than 10000 nodes Issue.
Avatar
Give Back 50
Level 5
lukaszm
Level 5

Likes

73 likes

Total Posts

56 posts

Correct reply

22 solutions
Top badges earned
Give Back 50
Boost 50
Affirm 10
Give Back 25
Boost 25
View profile
lukaszm
- Adobe Experience Manager
@AmanK24, so could you confirm if custom index solves the issue? If not, did you check query execution plan to verifies if your custom index is used. One last thing, I would assume that you have run re-index after you created custom index?

Views

226

Like

1

Replies

4
Re: Assets Share Commons : The query read or traversed more than 10000 nodes Issue.
Avatar
Give Back 50
Level 5
lukaszm
Level 5

Likes

73 likes

Total Posts

56 posts

Correct reply

22 solutions
Top badges earned
Give Back 50
Boost 50
Affirm 10
Give Back 25
Boost 25
View profile
lukaszm
- Adobe Experience Manager
Hi @AmanK24, it looks that query you have prepared is not covered by any index. Potential fixes areChange the query in the way it will be covered by existing definition.Create or extend existing index to support you query. You can use [1] to generate index definition.Change traversal limit, however keeping in mind your comments that number of assets will increase, probably this will not be a long term solution.You can also have a look on this page [2] [1] http://oakutils.appspot.com/generate/ind...

Views

253

Like

1

Replies

6
Re: AEM Full Text Search for a keyword with spaces
Avatar
Give Back 50
Level 5
lukaszm
Level 5

Likes

73 likes

Total Posts

56 posts

Correct reply

22 solutions
Top badges earned
Give Back 50
Boost 50
Affirm 10
Give Back 25
Boost 25
View profile
lukaszm
- Adobe Experience Manager
Hi @sumeet_a_kulkar, could you please try to put entire search phrase inside double quote. So your sample query will look like that:type=cq:Page path=/content/mysite/en group.p.or=true group.1_group.fulltext="Insurance Broker" group.2_group.fulltext="Insurance Claim" orderby.sort=desc p.limit=-1

Views

115

Like

1

Replies

0
Re: Passing Attributes to Sling Model via React?
Avatar
Give Back 50
Level 5
lukaszm
Level 5

Likes

73 likes

Total Posts

56 posts

Correct reply

22 solutions
Top badges earned
Give Back 50
Boost 50
Affirm 10
Give Back 25
Boost 25
View profile
lukaszm
- Adobe Experience Manager
Hi @gregy68980908, did you consider to pass the value using GET parameter. Sling model has access to request, so you should be able to retrieve GET param value and update data exposed by model respectively, e.g assuming this is url you are using now/content/we-retail/language-masters/en.model.jsonit can be changed to something like that (this is request you will sent from React)/content/we-retail/language-masters/en.model.json?attribute=valueIn your sling model you can access value like this:@Se...

Views

52

Likes

2

Replies

0
Re: Get asset path for overlayed component.
Avatar
Give Back 50
Level 5
lukaszm
Level 5

Likes

73 likes

Total Posts

56 posts

Correct reply

22 solutions
Top badges earned
Give Back 50
Boost 50
Affirm 10
Give Back 25
Boost 25
View profile
lukaszm
- Adobe Experience Manager Assets
Hi @subsul1, you can get list of paths for selected assets using path param that is pass as a request parameter. Please have a look on following code:RequestParameter selectedAssets[] = slingRequest.getRequestParameters("path"); if (selectedAssets != null) { for (RequestParameter selectedAsset : selectedAssets) { String assetPath = selectedAsset.getString("UTF-8"); System.out.println("Asset: " + assetPath); } }You should also add below into import section:org.apache.sling.api.request.RequestPara...

Views

75

Likes

2

Replies

1
Re: How to get current user session in osgi service?
Avatar
Give Back 50
Level 5
lukaszm
Level 5

Likes

73 likes

Total Posts

56 posts

Correct reply

22 solutions
Top badges earned
Give Back 50
Boost 50
Affirm 10
Give Back 25
Boost 25
View profile
lukaszm
- Adobe Experience Manager
@thatsmeadarsh, I think that the simplest option will be to have/use service user for replication. So it could look like this, assuming you have access to resource resolver for system user:Using system user resource resolver you can get session object and check if user with given id has replication permission for specific path(s)Base on above information you can decide if replication should be executed or not, of course replication will be run using system user.In general, I do not think there w...

Views

135

Like

1

Replies

0
Re: How to get current user session in osgi service?
Avatar
Give Back 50
Level 5
lukaszm
Level 5

Likes

73 likes

Total Posts

56 posts

Correct reply

22 solutions
Top badges earned
Give Back 50
Boost 50
Affirm 10
Give Back 25
Boost 25
View profile
lukaszm
- Adobe Experience Manager
Hi @thatsmeadarsh, you can get user ID that initiates specific change directly from ResourceChange object, i.e.@Override public void onChange(List changes) { for (ResourceChange change : changes) { String userId = change.getUserId(); // ... } }

Views

148

Like

1

Replies

2
Re: environment-dependent /etc/map config for CQ 5.6 for instance shared by multiple apps
Avatar
Give Back 50
Level 5
lukaszm
Level 5

Likes

73 likes

Total Posts

56 posts

Correct reply

22 solutions
Top badges earned
Give Back 50
Boost 50
Affirm 10
Give Back 25
Boost 25
View profile
lukaszm
- Adobe Experience Manager
@avni27 I think this should be possible, but you will probably need to copy all generic mappings under more specific path, so i.e. under /etc/map.qa.publish you can store all specific mapping for qa env and all generic ones, and similar approach for /etc/map.prod.publish. This is of course not the ideal approach, and you will need to keep and manage generic mappings in multiple places but in the other hand all the rest you got out of the box. So if generic mappings are not changed too often, thi...

Views

158

Likes

2

Replies

1
Re: environment-dependent /etc/map config for CQ 5.6 for instance shared by multiple apps
Avatar
Give Back 50
Level 5
lukaszm
Level 5

Likes

73 likes

Total Posts

56 posts

Correct reply

22 solutions
Top badges earned
Give Back 50
Boost 50
Affirm 10
Give Back 25
Boost 25
View profile
lukaszm
- Adobe Experience Manager
Hi @avni27, in general you can point to specific mapping location using org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl OSGi configuration - changing value of resource.resolver.map.locationIn other words, you can have dedicated OSGi configuration for each environment, base on run mode different OSGi configuration will be applied. Inside each configuration you can set mapping location specific for given environment.

Views

184

Like

1

Replies

3
Re: Get video path
Avatar
Give Back 50
Level 5
lukaszm
Level 5

Likes

73 likes

Total Posts

56 posts

Correct reply

22 solutions
Top badges earned
Give Back 50
Boost 50
Affirm 10
Give Back 25
Boost 25
View profile
lukaszm
- Adobe Experience Manager
@AD-EngineerCan you try this:Remove ValueMapValue annotation and add below method@PostConstruct protected void initModel() { video = componentResource.getValueMap().get("fileReference", String.class); }

Views

116

Like

1

Replies

0
Re: Get video path
Avatar
Give Back 50
Level 5
lukaszm
Level 5

Likes

73 likes

Total Posts

56 posts

Correct reply

22 solutions
Top badges earned
Give Back 50
Boost 50
Affirm 10
Give Back 25
Boost 25
View profile
lukaszm
- Adobe Experience Manager
@AD-Engineer Could you please share the entire sling model source code?

Views

123

Like

1

Replies

2