Uploaded image for project: 'PUBLIC - Liferay Social Office Community Edition'
  1. PUBLIC - Liferay Social Office Community Edition
  2. SOS-2042

Invite Members by email fails on account creation with active User workflow

    Details

    • Fix Priority:
      4
    • Affects Portal Version/s:
      6.1.20 EE GA2
    • Portal Fix Version/s:
      6.2.0 CE GA1, 6.2.10 EE GA1

      Description

      Once a new site member has been invited by email, clicking the invitation link and submitting the filled Create Account form results in password error in UI. This occurs only when Kaleo is deployed and default workflow for Users is enabled.

      Reproduction steps:

      1. Set up outgoing mail server in Portal
      2. Deploy Kaleo, and set the default workflow for Users to Single Approver
      3. Create a Social Office site, and invite a new member by mail
      4. In the invitation email, click the link to confirm invitation
      5. Fill the registration form, and submit it
      6. Actual result: Error message appears telling about invalid password

      Expected result is to inform the user about the approval process with no error message. (As seen when one registers from the Portal's login portlet while User workflow is active.)

      With Portal 6.1.20, I found that getCreateAccountURL() (in MemberRequestLocalServiceImpl) appends a redirection paremeter to the invitation URL. After submitting the registration form, this takes the User to the Social Office site. But, with User workflow enabled, the new account is only halfway created before the approval, i.e. random password hasn't been generated. Since redirection into SO requires login and authentication, empty password raises an exception which results in the error message.

      As a solution, the invitation mail template could be changed to contain 2 separate links: one for account creation and one for login.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 35 weeks, 6 days ago