since ‎19-10-2016
Online
Ravi_Pampana
MVP
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

58

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

80

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

137

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

154

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

166

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

97

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

113

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

151

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

169

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

172

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

186

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

205

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

130

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

135

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

130

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

197

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

157

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

314

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

159

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

200

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

172

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

317

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

559

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

219

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

411

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

458

Likes

0

Replies

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

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
Hi, Please check below link https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-read-xml-file-from-dam-and-place-it-in-jcr/td-p/250446

Views

558

Like

1

Replies

8
Re: Retrieve Image Extension
Avatar

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
Hi, Check below code to get the image extension from image resource Image image = new Image(resource); // resource - image resourceimage.getExtension(); For more details, please referhttps://helpx.adobe.com/experience-manager/6-3/sites/developing/using/reference-materials/javadoc/com/day/cq/commons/ImageResource.html#getExtension()Hope this helps!

Views

153

Like

1

Replies

0
Issue with Experience Fragment url when opening from Success dialog
Avatar

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
Hi, After creating experience fragment, clicking on Open from the success dialog, url is getting encoded and throwing page not found issue when accessing from dispatcher. Url is encoding from / to %2F when trying in local instance. Fix:Go to below node and override to /apps:http://:/libs/cq/experience-fragments/content/v2/experience-fragments/createxfwizard/jcr:content/body/items/form/successresponse Property: OpenBefore value: /editor.html{Path}.htmlNew value to fix issue:  /editor.html{+Path}....

Views

357

Likes

2

Replies

3
Hi, Check this post https://experienceleaguecommunities.a...
Avatar

Ravi_Pampana

MVP

Ravi_Pampana
- Adobe Experience Manager
Hi,Check this posthttps://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-6-4-touch-ui-the-height-of-the-contentframe-keeps-growing-in/qaq-p/296798

Views

343

Like

1

Replies

0