อัปเดตครั้งล่าสุดเมื่อ
21 ธ.ค. 2021
|
และยังใช้กับ AEM Forms on JEE
Environment
AEM 6.5 Forms on JEE
Issue
If you upgrade to AEM 6.5 Forms:
- An HTML5 Form included in a workflow that contains Default Submit Form process, fails to submit.
- An HTML5 Form included in a workflow that contains Default Render process, fails to render.
Cause
Update in JBoss version from JBoss 6.4.5 (used in AEM 6.3 Forms) and JBoss 7.0.6 (used in AEM 6.4 Forms) to JBoss 7.1.2 in AEM 6.5 Forms.
As a result, the HTML5 forms submission or rendition fails due to an update in Content-Type used in Default Submit Form process or User-Agent used in Default Render process.
Solution
Perform the following steps as a workaround for the failure due to Default Submit Form process:
- Open the Default Submit Form process in Workbench.
- Create a new variable of string datatype. For example, camelCaseContentType.
- In the Detect Content Type step, map "/process_data/@camelCaseContentType" with "/process_data/httpHeaders[@id='Content-Type']".
- Add the following condition in the "content type refers to html form" row:
string(contains(lower-case(/process_data/@camelCaseContentType), 'application/x-www-form-urlencoded')) - Save and Deploy the process.
Perform the following steps as a workaround for the failure due to Default Render process:
- Open the Default Render process in Workbench.
- Create a new variable of string datatype. For example, camelCaseUserAgent.
- In the Detect User Agent step, map "/process_data/@camelCaseUserAgent" with "/process_data/httpHeaders[@id='User-Agent']".
- Add the following condition in the "user agent contains ipad or android" row:
string(contains(lower-case(/process_data/@camelCaseUserAgent), 'msapphost')) = 'true'
string(contains(lower-case(/process_data/@camelCaseUserAgent), 'android')) = 'true'
string(contains(lower-case(/process_data/@camelCaseUserAgent), 'ipad')) = 'true' - Save and Deploy the process.