since ‎19-10-2016
Online
Ravi_Pampana
MVP
Re: Stop retrying Workflow using java
Avatar

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
Hi, If you throw WorkflowException then WF engine will retry the workflow later based on the AEM workflow Engine configuration. If you remove throwing the exception then retry should not occur. throw new WorkflowException("Unable to complete processing the Workflow Process step", e);

Views

18

Likes

0

Replies

0
Re: Need Help with creating a stub for workflow model in...
Avatar

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
Hi, Try below code @Mockprivate WorkflowService mockWorkflowService; @Mockprivate WorkflowSession wfSession; @Mockprivate WorkflowModel workflowModel; @Mockprivate WorkflowData wfData; setup method: MockSlingHttpServletRequest mockRequest = aemContext.request();mockRequest.addRequestParameter("path", "{add the page path}");aemContext.registerService(WorkflowService.class, mockWorkflowService);Mockito.when(mockWorkflowService.getWorkflowSession(Mockito.any(Session.class))).thenReturn(wfSession);M...

Views

52

Like

1

Replies

0
Re: Bundles going in installed state after service pack i...
Avatar

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
What is the version of Java you are having and did you see any errors in the log files (error.log) ? What is the process you are following to upgrade ? Is it installing Service pack 8 on plan version of AEM 6.5 ?

Views

102

Like

1

Replies

0
Re: Bundles going in installed state after service pack i...
Avatar

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
Hi, Can you check by expanding the bundles and see whether there are any unresolved bundles which has version conflicts ? Also, check whether the uber jar was updated to the correct AEM version.

Views

142

Like

1

Replies

2
Re: HTML injection
Avatar

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
Hi, Usually html injection can happen by either url or user input data. We need to check for the html tags and encode them to make sure they are consider as string instead of html tags. Take a look at below link for additional details https://www.softwaretestinghelp.com/html-injection-tutorial/

Views

112

Like

1

Replies

0
Re: Replication
Avatar

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
Can you check, that the service is properly registered within OSGI? Go to https://:/system/console/components and look for your class. If it is active and still getting replicator as null, share your complete file for checking further.

Views

152

Likes

0

Replies

0
Re: Replication
Avatar

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
You can take a look at this article : https://www.flexibledesigns.rs/activate-a-page-programmatically/

Views

209

Likes

0

Replies

0
Re: Replication
Avatar

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
Is your code have @reference added to the replicator @Referenceprivate Replicator replicator;

Views

226

Likes

0

Replies

0
Re: Replication
Avatar

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
Hi, See whether the user (session) is having replication access and check there are any exceptions in error.log like replicator is not null.

Views

238

Like

1

Replies

10
Re: Limiting uploads by size at folder level in AEM Assets
Avatar

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
Hi, Try to add a Custom Process Step in "Dam Upload Asset" (/libs/cq/workflow/content/console.html) workflow which checks the size of uploaded image and allowed size for the folder and continue if satisfies or stop the upload process Hope this helps!

Views

144

Likes

2

Replies

0
Re: Show hide buttons on toolbars in page listing view
Avatar

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
Hi, Refer below node which displays the option in nav only if the user has read access to /etc/workflow/models /libs/wcm/core/content/sites/jcr:content/actions/selection/create/items/createworkflow/granite:rendercondition /libs/cq/gui/components/renderconditions/canreadworkflowmodels/canreadworkflowmodels.jsp Hope this helps

Views

152

Like

1

Replies

1
Re: which would be a better option
Avatar

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
Hi, If you are adding a field in dialog where authors enters, it is good to validate on dialog submit instead of page

Views

189

Like

1

Replies

0
Re: Handling Optional Field Property - cq:dialog
Avatar

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
You can add emptyOption {boolean} true which will add empty option to the dropdown and on selecting it will remove the previously selected value. Refer coral api documentation for different options shared in my first comment https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/reference-materials/granite-ui/api/jcr_root/libs/granite/ui/components/coral/foundation/form/select/index.html

Views

223

Likes

0

Replies

0
Re: Handling Optional Field Property - cq:dialog
Avatar

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
Complete reply is added in next comment

Views

226

Likes

0

Replies

0
Re: Handling Optional Field Property - cq:dialog
Avatar

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
I dont see any issues, it might be a cache issue, can you change the value of dropdown and check the changes are reflecting.

Views

240

Likes

0

Replies

0
Re: Handling Optional Field Property - cq:dialog
Avatar

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
Hi, As per your xml shared you have two options in the dropdown and by default the first option will be showed when the dialog is opened and when dialog is closed the value will be stored with property name under jcr:content You can add below property to the productType node which will show the place holder text on dialog open and if no value is selected from dropdown, value will not be stored in jcr:content. "Select Value" text can be any value as per your requirement.  Dialog will be showed as...

Views

259

Likes

2

Replies

7
Re: Rearranging tabs using sling:orderBefore
Avatar

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
Hi, You can add livecopy node also to the cq:dialog and move it to the end which will move it to the last        Hope this helps! 

Views

165

Like

1

Replies

1
Re: AEM 6.5 <B> to <strong> in RTE
Avatar

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
Hi, You can try replacing the to in java while reading value from node property and displaying in htl. This will not replace to in the jcr node but for in html it will have instead of for already added rte's.

Views

171

Like

1

Replies

0
Re: [AEM 6.5] - jar file
Avatar

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
Hi, You can download the jar from below link https://experience.adobe.com/#/downloads/content/software-distribution/en/aem.html?package=/content/software-distribution/en/details.html/content/dam/aem/public/adobe/packages/cq650/quickstart/cq-quickstart-6.5.0.jar If you cannot access the above link, check with your admin who manages/works with Adobe Hope this helps!

Views

162

Like

1

Replies

1
Re: Page Properties is not disabled or no Lock Icon (Canc...
Avatar

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
Hi, Did you add granite:data ==> "cq-msm-lockable" property to your custom properties? If not adding that might solve your issue. Below is the sample for reference. Ex:/>

Views

242

Like

1

Replies

0
Re: AEM-6.5 Page properties not being reverted when i cli...
Avatar

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
Hi, Is your page properties are starting with cq:, jcr: or sling:, if so then those properties will be ignored in rollout. Refer https://helpx.adobe.com/se/experience-manager/kb/MSMRolloutConfig.html for more details. Hope this helps!

Views

188

Like

1

Replies

1
Re: Adding image urls with presets having $ in CSS file
Avatar

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
@hamidk92094312 , I raised day care ticket after finding the root cause of the issue (E-000224031) and I was told the issue will be fixed in AEM 6.6.

Views

369

Likes

0

Replies

0
Re: Is there any option through which only the metadata v...
Avatar

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
Hi, Seems you want to move the meta properties from master to translation page without sending them to localization process. In that case we can achieve this with custom implementation. Create a service which will show the page properties of the selected page and provide checkbox for authors to select the property which needs to be moved from master to available live copy or translation page. It will be like move the property from one page to other. Using OOB create structure only will update th...

Views

188

Like

1

Replies

0
Re: How to find or count all pages in AEM project? | AEM Community Blog Seeding
Avatar

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
This is helpful. We can also find the count using query builder in json format https://www.blogger.com/blog/post/edit/1528470937317694714/167344651072834696

Views

272

Like

1

Replies

0
Re: JSON on page load
Avatar

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
Hi, We can use Java-Use api or Javascript-use api to read json from the node and display in component html. You can refer http://aemcorner.blogspot.com/2015/09/render-json-data-using-sightly-custom.html for example.

Views

186

Like

1

Replies

1
Re: AEM Sightly - Check if edit mode
Avatar

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
Hi, Try "wcmmode.preview" but when we change from edit mode to preview there wont be page refresh and this will not work as intended. You need to do a page refresh on selecting preview mode. Hope this helps!

Views

391

Like

1

Replies

0
Adding image urls with presets having $ in CSS file
Avatar

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
When we add absolute image url with preset having $, the css file will not load and throw exception from OOB code (com/adobe/granite/ui/clientlibs/script/Utils.java). But by escaping $ we can overcome above issue and load the css file with preset correctly. .load { background:url("https://scene7.image.com/is/image/adobe/someimageutl?\$native\$");}

Views

614

Likes

0

Replies

4
Re: Not able to fix these dependency issues
Avatar

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
Hi, Can you check uber jar is upto date of the AEM version ? Sometimes we see these issues because of uber jar is having older version

Views

245

Likes

2

Replies

0
Re: provide 301 redirect in aem 6.5
Avatar

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
Hi, We can handle easily at dispatcher level by passing R=301 to the redirect rules. Ex:RewriteRule (.*)$ https://%{SERVER_NAME}$1/ [R=301,QSA,L]RewriteRule ^/test.html /test.html#anchor [NE,R=301,L]

Views

545

Like

1

Replies

0
Re: Read xml file and convert it to aem page
Avatar

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
You can read the values stored in the jcr and using pageManager API, we can create page and add values in as required. First it will be helpful if you come up with the mapping of fields and where/how it should stored under the page. Some of them will go to jcr:content and some go to a component. Once the mapping is done and you have required template and components created, programmatically we can add components under jcr:content and the values from xml file. Refer : https://experienceleaguecomm...

Views

518

Likes

0

Replies

0