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

TC-124 (Ez Comments) Updating a comment on eZ Webin raises an error

    Details

      Description

      Hi,
      When we update a comment that we edited in eZ Webin, a php error is raised.
      The error is:
      Fatal error: Call to undefined method ezcomUtility::validateWebsite() in /var/www/apache2php52/ezp430snapshot/.run/extension/ezcomments/classes/ezcomeditcommenttool.php on line 26
      Fatal error: eZ Publish did not finish its request

      The execution of eZ Publish was abruptly ended, the debug output is present below.

      Undefined variable: value in /var/www/apache2php52/ezp430snapshot/.run/extension/ezcomments/classes/ezcomeditcommenttool.php on line 43

      (se image in attach)

      Steps to reproduce

      Initialize the test case using this filter:
       
      --filter="eZCommentsSeleneseTests::.*initialize_and_create_object.html"
       
      Setup - Move test article to a folder
       
         1. Log in as admin in ezwebin
         2. Click "Content structure" in top menu
         3. Create new folder "News"
         4. Click "Comments system testing" link
         5. Click "Move" button
         6. Select radio button next to "News"
         7. Click "Select" button
       
      Setup - Permissions for Editors role
       
         1. Click "User Accounts" in top menu
         2. Click "Roles and policies in left menu
         3. Click edit icon next to "Editor"
         4. Click "New policy" button
            Module: comment
            Function: add
         5. Click "Grant full access"
         6. Click "New policy" button
            Module: comment
            Function: delete
         7. Click "Grant limited access"
            CommentCreator : Self
         8. Click "OK" button
         9. Click "New policy" button
            Module: comment
            Function: edit
        10. Click "Grant limited access"
            CommentCreator : Self
        11. Click "OK" button
        12. Click "New policy" button
            Module: comment
            Function: read
        13. Click "Grant full access"
        14. Click "Save" button
       
      Setup - Permissions for Editors role
       
         1. Click "Roles and policies in left menu
         2. Click edit icon next to "Member"
         3. Click "New policy" button
            Module: comment
            Function: add
         4. Click "Grant full access"
         5. Click "New policy" button
            Module: comment
            Function: edit
         6. Click "Grant limited access"
            CommentCreator : Self
         7. Click "OK" button
         8. Click "New policy" button
            Module: comment
            Function: read
         9. Click "Grant full access"
        10. Click "Save" button
       
      Create an editor1 user (member of Editors)
       
         1. Click "User accounts" in top menu
         2. Click "Editors" link
         3. Create a new user:
            First name : Editor1
            Last name : Editor1
            Username : editor1
            Password : editor1
            Confirm password : editor1
            Email : editor1@asdf.no
         4. Click "Send for publishing" button
             
       
      Create a member1 user (member of Members)
       
         1. Click "Members" link in left menu
         2. Create a new user:
            First name : Member11
            Last name : Member1
            Username : member1
            Password : member1
            Confirm password : member1
            Email : member1@asdf.no
         3. Click "Send for publishing" button
         4. Log out
       
      Post a comment as editor1
       
         1. Log in as editor1 in ezwebin
         2. Click "News" in top menu
         3. Click "Comments system testing" link
         4. Post a comment:
            Title : editor1 comment
            Content : editor1 content
       
      Validate that editor1 can delete and edit his comment
       
         1. Validate that the new comment is published on the article page
         2. Validate that you have both have a "Edit" and "Delete" link assosiated with the comment
         3. Click the "Edit" link
         4. Replace Content:
            editor1 content version 2
         5. Click "Update comment"
      

        Activity

        No workflow transitions have been executed yet.

          People

          • Assignee:
            Chen Xiongjie
            Reporter:
            Paulo Cardiga
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: