since ‎03-06-2010
‎10-12-2019
broman__pl
Level 2
aem translator removing key with empty value
Avatar

broman__pl

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?

Views

513

Like

1

Replies

1
Re: InstallHook and Sling runmode
Avatar

broman__pl

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...

Views

666

Like

1

Replies

0
Re: InstallHook and Sling runmode
Avatar

broman__pl

broman__pl
- Adobe Experience Manager
Thing is that I cannot get current bundle object it is always null for me

Views

673

Likes

0

Replies

0
InstallHook and Sling runmode
Avatar

broman__pl

broman__pl
- Adobe Experience Manager
Hi,Is it possible to read Sling RunMode in InstallHook implementation?Thanks

Views

1.1K

Likes

0

Replies

4
HttpSession in AEM 6.2
Avatar

broman__pl

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

Views

4.5K

Like

1

Replies

8
Client Context and browser storage
Avatar

broman__pl

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.

Views

510

Likes

0

Replies

0
xpath query and special characers
Avatar

broman__pl

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...

Views

318

Likes

0

Replies

0
xpath query and special characers
Avatar

broman__pl

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...

Views

421

Likes

0

Replies

1
DataSourcePool and validation query
Avatar

broman__pl

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...

Views

357

Likes

0

Replies

1
Re: Query Builder escaping
Avatar

broman__pl

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...

Views

417

Likes

0

Replies

0
Re: Query Builder escaping
Avatar

broman__pl

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

Views

394

Likes

0

Replies

0
Query Builder escaping
Avatar

broman__pl

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\?'

Views

850

Likes

0

Replies

4
licence check?
Avatar

broman__pl

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?

Views

355

Likes

0

Replies

1
Re: Sticky Connections and JSESSIONID
Avatar

broman__pl

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

Views

662

Likes

0

Replies

0
Sticky Connections and JSESSIONID
Avatar

broman__pl

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,

Views

1.9K

Likes

0

Replies

5