Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-10729

Post editor information is not updated when user being deleted with posts

    Details

      Description

      If you delete user and remove his posts, post_edit_user is not updated to ANONYMOUS for posts which were edited by deleted user. This causes errors in viewtopic, like

      [phpBB Debug] PHP Notice: in file [ROOT]/viewtopic.php on line 1434: Undefined index: 57
      [phpBB Debug] PHP Notice: in file [ROOT]/viewtopic.php on line 1434: Undefined index: 57


      where 57 is deleted user id (just for example).

        Activity

        Hide
        rxu Ruslan Uzdenov added a comment -

        Now I'm not sure whether we should update editor's user_id information to anonymous or drop edit information entirely.
        The former way looks more graceful but information that post was edited by Guest can be confusing.
        As for the latter way, we lose editing info for the post, but since editor has been deleted, that would be right thing (no confusing info as well).

        Show
        rxu Ruslan Uzdenov added a comment - Now I'm not sure whether we should update editor's user_id information to anonymous or drop edit information entirely. The former way looks more graceful but information that post was edited by Guest can be confusing. As for the latter way, we lose editing info for the post, but since editor has been deleted, that would be right thing (no confusing info as well).
        Hide
        nickvergessen Joas Schilling added a comment -

        Update to anonymous and keep the username if that is possible

        Show
        nickvergessen Joas Schilling added a comment - Update to anonymous and keep the username if that is possible
        Hide
        nickvergessen Joas Schilling added a comment -
        Show
        nickvergessen Joas Schilling added a comment - 3.1 PR: https://github.com/phpbb/phpbb/pull/2984

          People

          • Assignee:
            nickvergessen Joas Schilling
            Reporter:
            rxu Ruslan Uzdenov
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development