Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-18143

User register failed if approval workflow

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 4.4.0
    • Fix Version/s: None
    • Component/s: Legacy > Workflows
    • Labels:
      None
    • Environment:

      PHP Version: 5.3.3
      Database and version: MySQL 5.1.49

      Description

      In kernel/user/register, there's a test that breaks the process:
      Line 206

                  if ( $operationResult['status'] !== eZModuleOperationInfo::STATUS_CONTINUE )
                  {
                      eZDebug::writeError( 'User object(' . $object->attribute( 'id' ) . ') could not be published.', 'user/register' );
                      $module->redirectTo( '/user/register/3' );
                      return;
                  }
      

      There's no test on eZModuleOperationInfo::STATUS_HALTED. As a result, new object is marked as deleted in backend and induce error with runcronjob.

      I've just made minor modification to make it work but don't know if it's the way:

      if ( !($operationResult['status'] == eZModuleOperationInfo::STATUS_CONTINUE || $operationResult['status'] == eZModuleOperationInfo::STATUS_HALTED) )
      
      Steps to reproduce

      Register a workflow to validate new user publication
      Try to register a new user with anonymous

        Attachments

          Activity

            People

            • Assignee:
              chen Chen Xiongjie
              Reporter:
              RiderCrazy Rémy Feuvrier
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: