aem-core-wcm-components
aem-core-wcm-components copied to clipboard
[Form] Update Log mode for form actions after form submission
Bug Report
Current Behavior
OOTB form actions only have .jsp files to render , but AEM is looking for .html files to render .
Steps to reproduce the issue --
Step 1) Add a OOTB Form Container component in a page and configure it , Step 2) Select Store Content / Mail / Post form Data in Action Type field , Step 3) Populate other fields with their respective values in dialog and save it , Step 4) Add form text field(s) and a submit button, Step 5) Configure form text fields with their respective values , Step 6) View page as published, Step 7) fill the form and submit it, Step 8) following logs will be visible in error.log file (error logs are mentioned below as per the Action Type selected ) --
1)for Store Content action type -->
*ERROR* [[0:0:0:0:0:0:0:1] [1702550894373] POST /content/we-retail/language-masters/en/men.html HTTP/1.1] org.apache.sling.servlets.get.impl.DefaultGetServlet No renderer for extension html, cannot render resource ResourceWrapper, type=foundation/components/form/actions/store, path=/content/we-retail/language-masters/en/men/jcr:content/root/responsivegrid/container, resource=[JcrNodeResource, type=weretail/components/form/container, superType=null, path=/content/we-retail/language-masters/en/men/jcr:content/root/responsivegrid/container]
2)for Mail action type -->
*ERROR* [[0:0:0:0:0:0:0:1] [1702545457570] POST /content/we-retail/language-masters/en/men.html HTTP/1.1] org.apache.sling.servlets.get.impl.DefaultGetServlet No renderer for extension html, cannot render resource ResourceWrapper, type=foundation/components/form/actions/mail, path=/content/we-retail/language-masters/en/men/jcr:content/root/responsivegrid/container, resource=[JcrNodeResource, type=weretail/components/form/container, superType=null, path=/content/we-retail/language-masters/en/men/jcr:content/root/responsivegrid/container]
3)for Post form Data action type -->
*ERROR* [[0:0:0:0:0:0:0:1] [1702544561813] POST /content/we-retail/language-masters/en/men.html HTTP/1.1] org.apache.sling.servlets.get.impl.DefaultGetServlet No renderer for extension html, cannot render resource ResourceWrapper, type=core/wcm/components/form/actions/rpc, path=/content/we-retail/language-masters/en/men/jcr:content/root/responsivegrid/container, resource=[JcrNodeResource, type=weretail/components/form/container, superType=null, path=/content/we-retail/language-masters/en/men/jcr:content/root/responsivegrid/container]
Expected behavior/code
Logs should be in Info or Warn mode .
Environment
- AEM version - 6.5 with servicePack 16
- Core Components version- 2.22.10
- openjdk version "11.0.18" 2023-01-17 LTS
Possible Solution
Additional context / Screenshots Add any other context about the problem here. If applicable, add screenshots to help explain.