since ‎03-06-2010
‎10-12-2019
broman__pl
Level 2
aem translator removing key with empty value broman__pl - Adobe Experience Manager
Hi, In AEM Translator(6.1) when I remove string from single language it keeps node for this language with empty sling:message property and it prevents aem to pick default English valueIs there any way in Translator to remove translation node for single language?
441
Views
1
Like
1
Replies
Re: InstallHook and Sling runmode broman__pl - Adobe Experience Manager
It seems that code was good but way how I use it was not for Osgi aware hook.Difference was in hook class context itself. Initially I just build JAR and put it into package in /META-INF/vault/hooksNow when hook is in separate bundle installed before and defined in property in content-package-maven-plugin configuration it is osgi aware In code InstallHookProcessorImpl.java I found that it looks for package properties in this format installhook.{name}.class to register hooksNetcentric is using pro...
563
Views
1
Like
0
Answers
Re: InstallHook and Sling runmode broman__pl - Adobe Experience Manager
Thing is that I cannot get current bundle object it is always null for me
570
Views
0
Likes
0
Answers
InstallHook and Sling runmode broman__pl - Adobe Experience Manager
Hi,Is it possible to read Sling RunMode in InstallHook implementation?Thanks
994
Views
0
Likes
4
Answers and Comments
HttpSession in AEM 6.2 broman__pl - Adobe Experience Manager
Hi, I try to use HttpSession to store some values but it is not working in AEM 6.2 Here is my test code when you click next you should see "my new value" instead null<%@ page session="true" %><% //HttpSession sessionCustom=request.getSession(false); String oldValue = (String) session.getAttribute("val"); session.setAttribute("val", "my new value");%> our old value <%= oldValue %> next page
4426
Views
1
Like
8
Answers and Comments
Client Context and browser storage broman__pl - Adobe Experience Manager Forms
Hi,I see note about browser storage in documentation about Client Context"Store persistence uses either browser storage or cookies (the SessionPersistence cookie). Browser storage is more common."But I don't see any details how to use browser storage instead of cookie.
450
Views
0
Likes
0
Answers and Comments
xpath query and special characers broman__pl - Adobe Experience Cloud
I try to nodes with property that contains some text with special character like ? + and !I have 4 nodes/tmp/exclamation[@prop="value with!"]/tmp/plus[@prop="value with+"]/tmp/question[@prop="value with?"]/tmp/string[@prop="value with string"]/jcr:root/tmp//*[(jcr:contains(@prop, 'with') )] return me all 4 nodes/jcr:root/tmp//*[(jcr:contains(@prop, 'with\!') )] return me all 4 nodes/jcr:root/tmp//*[(jcr:contains(@prop, 'with\?') )] return me all 4 nodes/jcr:root/tmp//*[(jcr:contains(@prop, 'with...
283
Views
0
Likes
0
Replies
xpath query and special characers broman__pl - Adobe Experience Manager
I try to nodes with property that contains some text with special character like ? + and !I have 4 nodes/tmp/exclamation[@prop="value with!"]/tmp/plus[@prop="value with+"]/tmp/question[@prop="value with?"]/tmp/string[@prop="value with string"]/jcr:root/tmp//*[(jcr:contains(@prop, 'with') )] return me all 4 nodes/jcr:root/tmp//*[(jcr:contains(@prop, 'with\!') )] return me all 4 nodes/jcr:root/tmp//*[(jcr:contains(@prop, 'with\?') )] return me all 4 nodes/jcr:root/tmp//*[(jcr:contains(@prop, 'with...
409
Views
0
Likes
1
Answers and Comments
DataSourcePool and validation query broman__pl - Adobe Experience Manager
Hi,I try to use DataSourcePool to connect with MySQL database. And I notice that after long inactivity or database restart connection is closed and first attempt to use it ends with this error message.Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 49,803,911 milliseconds ago. The last packet sent successfully to the server was 49,803,925 milliseconds ago. is longer than the server configured value of 'wait_timeout'. Y...
345
Views
0
Likes
1
Answers and Comments
Re: Query Builder escaping broman__pl - Adobe Experience Manager
I just write script in groovy to escape text and print it out, it is not about index but escaping characters before it go to search.import org.apache.jackrabbit.util.Text fullText = "Moving to Alabama? Start Off on the Left Foot!"; println Text.escapeIllegalXpathSearchChars(fullText); // Moving to Alabama? Start Off on the Left Foot\! fullText = "Moving to Alabama! Start Off on the Left Foot!"; println Text.escapeIllegalXpathSearchChars(fullText); // Moving to Alabama! Start Off on the Left Foot...
385
Views
0
Likes
0
Answers
Re: Query Builder escaping broman__pl - Adobe Experience Manager
AEM 5.6.1.20130606com.day.cq.cq-search 5.6.4I also test Text.escapeIllegalXpathSearchChars from jackrabbit-jcr-commons 2.6.2 - 2.8 and it behave exactly same
364
Views
0
Likes
0
Answers
Query Builder escaping broman__pl - Adobe Experience Manager
I just notice that Query builder escapes special characters in values but only first one.in debug log in XPath I see values:'Start Off on the Left Foot\!' - when query for text with !'Moving to Alabama\?' - when query for text with ?But when query for test with ? and !'Moving to Alabama? Start Off on the Left Foot\!' or 'Moving to Alabama! Start Off on the Left Foot\?'
815
Views
0
Likes
4
Answers and Comments
licence check? broman__pl - Adobe Experience Manager
I notice that from time to time cq adds an additional request with system information and license numberhttp://devedge.day.com/cq5.gif?s=???&u=???&v=5.5.0&d=???&j=Sun+1.6.0_34&o=Linux+2.6.18-194.el5How often it is added?
344
Views
0
Likes
1
Answers and Comments
Re: Sticky Connections and JSESSIONID broman__pl - Adobe Experience Manager
Hi,In my case sticky session works as long as user access to url that is configured as sticky but when user go to page that is not sticky it lost session.So only solution with a sticky connection is to configure root path as sticky connection. Other solution may be synchronize session data among cluster nodes but in this case sticky connection is not necessary, so it looks like stickiness of connection cannot be used with http session.Thanks
607
Views
0
Likes
0
Answers
Sticky Connections and JSESSIONID broman__pl - Adobe Experience Manager
Hi,I try to use HttpSession to store some user data. I created service that save data in session and read those data for user back, path to is is defined as sticky connection. And as long we use one CQ5.5 instance it works. But on multiple instances when user go to another page that is not defined as sticky connection user go to another instance and this instance change JSESSIONID and then I cannot read session data in my service.Is ther any way to use sessions in multiple instance?Thanks,
1805
Views
0
Likes
5
Answers and Comments