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

Errors in eZTextfileUser in ezPublish 4.0.1

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Medium Medium
    • Resolution: Fixed
    • Affects Version/s: 4.0.1
    • Fix Version/s: Customer request
    • Labels:
      None
    • Environment:

      Operating System: RHEL 2.6.18-92.el5 #1 SMP x86_64 x86_64 x86_64 GNU/Linux
      PHP Version: 5.1.6
      Database and version: PostgreSQL 8.1.11
      Browser (and version): n/a

      Description

      Tue Jan 13 14:42:43 CET 2009 lutz@iks-jena.de

      • Fix documentation for eztextfileuser

        --- old-ezpublish-4.0.1/kernel/classes/datatypes/ezuser/eztextfileuser.php
        +++ new-ezpublish-4.0.1/kernel/classes/datatypes/ezuser/eztextfileuser.php
        @@ -60,7 +60,7 @@
             /*!
             \static
              Logs in the user if applied username and password is
        -     valid. The userID is returned if succesful, false if not.
        +     valid. The eZUser object is returned if succesful, false if not.
             */
             static function loginUser( $login, $password, $authenticationMatch = false )
             {
        

      Mon Jan 12 17:56:10 CET 2009 lutz@iks-jena.de

      • Bugfix ezTextFileUser (nodeID statt ObjectID)

        --- old-ezpublish-4.0.1/kernel/classes/datatypes/ezuser/eztextfileuser.php
        +++ new-ezpublish-4.0.1/kernel/classes/datatypes/ezuser/eztextfileuser.php
        @@ -206,10 +206,7 @@
                         else if ( $UserGroupType == "id" )
                         {
                             $groupID = $UserGroup;
        -                    $groupQuery = "SELECT ezcontentobject_tree.node_id
        -                                           FROM ezcontentobject, ezcontentobject_tree
        -                                           WHERE ezcontentobject.id='$groupID'
        -                                           AND ezcontentobject.id=ezcontentobject_tree.contentobject_id";
        +                    $groupQuery = "SELECT node_id FROM ezcontentobject_tree WHERE '$groupID'=node_id";
                             $groupObject = $db->arrayQuery( $groupQuery );
         
                             if ( count( $groupObject ) > 0  )
        

      Fri Jan 9 23:35:39 CET 2009 lutz@iks-jena.de

      • Bugfix eZLoginTextfile
          • old-ezpublish-4.0.1/kernel/classes/datatypes/ezuser/eztextfileuser.php
            +++ new-ezpublish-4.0.1/kernel/classes/datatypes/ezuser/eztextfileuser.php
            @@ -251,7 +251,7 @@
            if ( trim( $pass ) == $password )
            {
            $createNewUser = true;
      • $existUser = $this->fetchByName( $login );
        + $existUser = eZUser::fetchByName( $login );
        if ( $existUser != null )
        {
        $createNewUser = false;
        @@ -290,7 +290,7 @@
        $contentObjectAttributes[1]->setAttribute( 'data_text', $lastName );
        $contentObjectAttributes[1]->store();
      • $user = $this->create( $userID );
        + $user = eZUser::create( $userID );
        $user->setAttribute( 'login', $login );
        $user->setAttribute( 'email', $email );
        $user->setAttribute( 'password_hash', "" );
        </code>
      Steps to reproduce

      [UserSettings]
      LoginHandler[]=textfile
      ...
      Try to use ist.

        Issue Links

          Activity

          Hide
          (inactive) Gunnstein Lye added a comment -

          Patch against trunk attached (works against stable 4.0 and 4.1 too).issue-5548-textfile-auth-trunk.diff

          Show
          (inactive) Gunnstein Lye added a comment - Patch against trunk attached (works against stable 4.0 and 4.1 too). issue-5548-textfile-auth-trunk.diff
          Hide
          (inactive) Gunnstein Lye added a comment -

          Fixed in trunk rev. 23680
          Merged in stable/4.1 (4.1.4) rev. 23681
          Merged in stable/4.0 (4.0.7) rev. 23682

          Show
          (inactive) Gunnstein Lye added a comment - Fixed in trunk rev. 23680 Merged in stable/4.1 (4.1.4) rev. 23681 Merged in stable/4.0 (4.0.7) rev. 23682
          Hide
          ezrobot added a comment -

          This issue has been automatically closed due to the lack of activity over a long period of time. It is very likely that it is obsolete, but if you think it is still valid, do not hesitate to reopen it and mention why.

          Show
          ezrobot added a comment - This issue has been automatically closed due to the lack of activity over a long period of time. It is very likely that it is obsolete, but if you think it is still valid, do not hesitate to reopen it and mention why.

            People

            • Assignee:
              (inactive) Gunnstein Lye
              Reporter:
              Lutz Donnerhacke
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: