adobe / adobe/aem-core-cif-components
In AEMaaCS its causing an issue with Launches url on the preview
- Dominant language
- Java
- Stars
- 109
- Forks
- 78
- Avg merge
- 4d 18h
- Merged PRs (30d)
- 4
Description
### Expected Behaviour
AEMaaCloud Service - Launch urls need to be pushed preview servers and we should be able to view that /content/launches.. url.
### Actual Behaviour
AEMaaCloud Service - Launch urls pushed to preview servers are not loading showing null pointer exception. PFB the logs
### Reproduce Scenario (including but not limited to)
#### Steps to Reproduce
1. Create a AEM Launches url and push to preview through manage publication
2. Try to access that aem launches direct url on the preview url
#### Platform and Version
AEM Release | 2023.2.11289.20230224T170559Z
core-cif-components-core:2.4.2
#### Sample Code that illustrates the problem
https://github.com/adobe/aem-core-cif-components/blob/core-cif-components-reactor-2.4.2/bundles/core/src/main/java/com/adobe/cq/commerce/core/components/utils/SiteNavigation.java#L190
#### Logs taken while reproducing problem
/content/launches/2021/09/27/thanks_giving/content/tsc/en/cms/grilling.html HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught Throwable
java.lang.NullPointerException: null
at com.adobe.cq.wcm.launches.utils.LaunchUtils.getTargetResourcePath([LaunchUtils.java:129](http://launchutils.java:129/)) [com.adobe.cq.wcm.cq-wcm-launches-core:5.14.54]
at com.adobe.cq.wcm.launches.utils.LaunchUtils.getTargetResource([LaunchUtils.java:108](http://launchutils.java:108/)) [com.adobe.cq.wcm.cq-wcm-launches-core:5.14.54]
at com.adobe.cq.commerce.core.components.utils.SiteNavigation.lambda$toLaunchProductionPage$2([SiteNavigation.java:190](http://sitenavigation.java:190/)) [com.adobe.commerce.cif.core-cif-components-core:2.4.2]
at java.base/java.util.Optional.map([Optional.java:265](http://optional.java:265/))
at com.adobe.cq.commerce.core.components.utils.SiteNavigation.toLaunchProductionPage([SiteNavigation.java:190](http://sitenavigation.java:190/)) [com.adobe.commerce.cif.core-cif-components-core:2.4.2]
at com.adobe.cq.commerce.core.components.utils.SiteNavigation.getGenericPage([SiteNavigation.java:127](http://sitenavigation.java:127/)) [com.adobe.commerce.cif.core-cif-components-core:2.4.2]
at com.adobe.cq.commerce.core.components.utils.SiteNavigation.getProductPage([SiteNavigation.java:59](http://sitenavigation.java:59/)) [com.adobe.commerce.cif.core-cif-components-core:2.4.2]
at com.adobe.cq.commerce.core.components.utils.SiteNavigation.isProductPage([SiteNavigation.java:204](http://sitenavigation.java:204/)) [com.adobe.commerce.cif.core-cif-components-core:2.4.2]
at com.adobe.cq.commerce.core.components.internal.servlets.CatalogPageNotFoundFilter.doFilter([CatalogPageNotFoundFilter.java:104](http://catalogpagenotfoundfilter.java:104/)) [com.adobe.commerce.cif.core-cif-components-core:2.4.2]
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter([AbstractSlingFilterChain.java:78](http://abstractslingfilterchain.java:78/)) [org.apache.sling.engine:2.12.2]
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter([AbstractSlingFilterChain.java:84](http://abstractslingfilterchain.java:84/)) [org.apache.sling.engine:2.12.2]
at com.adobe.granite.uriprovider.dba.DBAHeaderFilter.doFilter([DBAHeaderFilter.java:107](http://dbaheaderfilter.java:107/)) [com.adobe.granite.uriprovider.dba:0.2.8]
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter([AbstractSlingFilterChain.java:78](http://abstractslingfilterchain.java:78/)) [org.apache.sling.engine:2.12.2]
at com.adobe.cq.wcm.core.extensions.amp.internal.AmpModeForwardFilter.doFilter([AmpModeForwardFilter.java:84](http://ampmodeforwardfilter.java:84/)) [com.adobe.cq.core.wcm.components.extensions.amp:2.21.2]
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter([AbstractSlingFilterChain.java:78](http://abstractslingfilterchain.java:78/)) [org.apache.sling.engine:2.12.2]
at com.day.cq.dam.core.impl.servlet.DisableLegacyServletFilter.executeFilter([DisableLegacyServletFilter.java:197](http://disablelegacyservletfilter.java:197/)) [com.day.cq.dam.cq-dam-core:5.13.476]
at com.day.cq.dam.core.impl.servlet.DisableLegacyServletFilter.doFilter([DisableLegacyServletFilter.java:154](http://disablelegacyservletfilter.java:154/)) [com.day.cq.dam.cq-dam-core:5.13.476]
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter([AbstractSlingFilterChain.java:78](http://abstractslingfilterchain.java:78/)) [org.apache.sling.engine:2.12.2]
at org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter([RequestProgressTrackerLogFilter.java:109](http://requestprogresstrackerlogfilter.java:109/)) [org.apache.sling.engine:2.12.2]
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter([AbstractSlingFilterChain.java:78](http://abstractslingfilterchain.java:78/)) [org.apache.sling.engine:2.12.2]
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter([AbstractSlingFilterChain.java:84](http://abstractslingfilterchain.java:84/)) [org.apache.sling.engine:2.12.2]
at com.day.cq.wcm.foundation.forms.FormsHandlingServletHelper.handleFilter([FormsHandlingServletHelper.java:226](http://formshandlingservlethelper.java:226/)) [com.day.cq.wcm.cq-wcm-foundation:5.14.26]
at com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet.doFilter([FormsHandlingServlet.java:138](http://formshandlingservlet.java:138/)) [com.day.cq.wcm.cq-wcm-foundation:5.14.26]
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter([AbstractSlingFilterChain.java:78](http://abstractslingfilterchain.java:78/)) [org.apache.sling.engine:2.12.2]
at com.adobe.granite.optout.impl.OptOutFilter.doFilter([OptOutFilter.java:76](http://optoutfilter.java:76/)) [com.adobe.granite.optout:1.0.0]
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter([AbstractSlingFilterChain.java:78](http://abstractslingfilterchain.java:78/)) [org.apache.sling.engine:2.12.2]
at com.day.cq.wcm.foundation.forms.FormsHandlingServletHelper.handleFilter([FormsHandlingServletHelper.java:226](http://formshandlingservlethelper.java:226/)) [com.day.cq.wcm.cq-wcm-foundation:5.14.26]
at com.adobe.cq.wcm.core.components.internal.servlets.CoreFormHandlingServlet.doFilter([CoreFormHandlingServlet.java:123](http://coreformhandlingservlet.java:123/)) [com.adobe.cq.core.wcm.components.core:2.21.2]
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter([AbstractSlingFilterChain.java:78](http://abstractslingfilterchain.java:78/)) [org.apache.sling.engine:2.12.2]
at com.day.cq.wcm.core.impl.WCMRequestFilter.doFilter([WCMRequestFilter.java:90](http://wcmrequestfilter.java:90/)) [com.day.cq.wcm.cq-wcm-core:5.14.70]
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter([AbstractSlingFilterChain.java:78](http://abstractslingfilterchain.java:78/)) [org.apache.sling.engine:2.12.2]
at org.apache.sling.rewriter.impl.RewriterFilter.doFilter([RewriterFilter.java:87](http://rewriterfilter.java:87/)) [org.apache.sling.rewriter:1.3.4]
Contributor guide
Research direction
Start by reproducing the documented AEMaaCS scenario: publish an AEM Launches URL through Manage Publication and request its preview URL. Inspect SiteNavigation.java at line 190 alongside the LaunchUtils.java stack frames and CatalogPageNotFoundFilter.java. Done means the preview Launches URL loads without the reported null pointer exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100