HTML5 Forms with Default Submit process and Default Render process in a workflow do not submit or render on JBOSS 7

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:

  1. Open the Default Submit Form process in Workbench.
  2. Create a new variable of string datatype. For example, camelCaseContentType.
  3. In the Detect Content Type step, map "/process_data/@camelCaseContentType" with "/process_data/httpHeaders[@id='Content-Type']".
  4. 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'))
  5. Save and Deploy the process.

Perform the following steps as a workaround for the failure due to Default Render process:

  1. Open the Default Render process in Workbench.
  2. Create a new variable of string datatype. For example, camelCaseUserAgent.
  3. In the Detect User Agent step, map "/process_data/@camelCaseUserAgent" with "/process_data/httpHeaders[@id='User-Agent']".
  4. 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'
  5. Save and Deploy the process.

 

 Adobe

Získejte pomoc rychleji a snáze

Nový uživatel?