Expand my Community achievements bar.

AEM 6.1 encoding problem on the orderby property of XPath queries.

Avatar

Level 2

Hi All,

I'm currently in the process of migrating a project of a client of ours from AEM 6.0 to AEM 6.1. While testing I noticed that the orderby property of XPath queries has encoding problems with spaces, @, commas, etc. More specifically our original XPath query in AEM 6.0 "/jcr:root/content/en//element(*, ampx:Test)[((@enddate > xs:dateTime('2016-03-15T00:00:00.000+01:00')))] order by @pinned descending,@jcr:created descending" becomes "jcr:root/content/en//element(*, ampx:Test)[((@enddate > xs:dateTime('2016-03-15T00:00:00.000+01:00')))] order by @pinned_x0020_descending_x002c__x0040_jcr:created_x0020_descending" in AEM 6.1.

Does anybody have any idea on this? I'm currently running AEM 6.1 SP1.

Kind regards,

Simon

3 Replies

Avatar

Level 2

Does anybody know about this problem or can hint me in the right direction? I already openend a ticket at daycare but so far no response.

Kind regards,

Simon

Avatar

Level 10

That looks like a bug. Opening a ticket is the correct way to proceed. 

Avatar

Level 10

If the same query is not working with the version, then it could be a bug as @scott mentioned, please open a support ticket here https://daycare.day.com/home/createaticket.html