Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-51956

Simple Captcha doesn't work with mutipart/form-data forms

    Details

      Description

      Steps to reproduce:

      1. In current master (7.0.x) deploy the attached portlet (testcaptcha-14.0-SNAPSHOT.war) that has the next form in the view.jsp:

      <portlet:actionURL var="actionURL">
      </portlet:actionURL>
      
      <aui:form  action="<%= actionURL %>" method="post" name="fm1" enctype="multipart/form-data">
      
      	<liferay-ui:error exception="<%= CaptchaMaxChallengesException.class %>" message="maximum-number-of-captcha-attempts-exceeded" />
      	<liferay-ui:error exception="<%= CaptchaTextException.class %>" message="text-verification-failed" />
      
      	<aui:input type="file" name="file" />
      
      	<portlet:resourceURL var="captchaURL">
      	    <portlet:param name="<%= Constants.CMD %>" value="captcha" />
      	</portlet:resourceURL>    
      	<liferay-ui:captcha url="<%= captchaURL %>" />
      
      	<aui:button type="submit" name="submit" />
      </aui:form>
      

      2. Add the portlet to a page and introduce the text validation for the captcha image.

      3. Save.

      Result: text verification error (see attached image validationerror.png)

      Expected: no error.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                joyce.wang Joyce Wang
                Reporter:
                jose.jimenez Jose Jimenez
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 12 weeks, 5 days ago

                  Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 M3