adobe / adobe/aem-modernize-tools
[Page Template/Structure Conversion Tool returns empty list
- Dominant language
- Java
- Stars
- 62
- Forks
- 45
- PR merge metrics
- No merged PRs in 30d
Description
Dear team,
I'm trying to convert the static template to editable using V1.0.0. When I tried to get the list of templates, I see the empty list and got to see the below error.
GET /libs/cq/modernize/templatestructure/content/console.html HTTP/1.1] com.adobe.aem.modernize.structure.datasources.PageDataSource Unable to list components: java.text.ParseException: Query: SELECT * FROM [cq:PageContent] AS pc WHERE ISDESCENDANTNODE(pc, '/content/xxx') AND pc.[cq:template] IN ((*)); expected: static operand
Expected Behaviour:
Expected to see the list of templates, that are provided in the search box.
Actual Behaviour
It returns an empty list.
Steps to Reproduce
1. Install the V1.0.0 package
2. After landing on the template/structure conversion tool page, try to enter the search path, the system returns an empty list.
Platform and Version
AEM 6.5 using aem-modernize-tools-1.0.0
Logs taken while reproducing problem
GET /libs/cq/modernize/templatestructure/content/console.html HTTP/1.1] com.adobe.aem.modernize.structure.datasources.PageDataSource Unable to list components: java.text.ParseException: Query: SELECT * FROM [cq:PageContent] AS pc WHERE ISDESCENDANTNODE(pc, '/content/xxx') AND pc.[cq:template] IN ((*)); expected: static operand
Contributor guide
Research direction
Start at the PageDataSource entry point named in the log and inspect how the template search path becomes the cq:template IN clause in the reported query. Reproduce the empty-list response on AEM 6.5 with aem-modernize-tools-1.0.0, then verify that matching templates are returned without the ParseException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100