Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
Important
Description
The method getSlingLocation in class SlingHttpResponse uses a search pattern which only works if the "id" attribute is the last one. We have implemented a link rewriter transformer in our project which adds a class="internal" to each internal link. In our case now the class attribute is the last one and the method extractFromHTMLResponse(String searchPattern) will return null because it won't find the the searched string in the content (see attached response_content.txt).
The same issue exists for other methods like
- getSlingParentLocation()
- getSlingReferer()
It seems AEMaaCs uses the aem-test-samples (https://github.com/adobe/aem-test-samples) for integration tests during the production pipeline run. One of the tests is using the getSlingLocation method which causes termination of the deployment process.