• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 4.x Series
    • Bug
    • Contributions attributed to wrong user

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Issue: Contributions attributed to wrong user

    • Issue Tools
      • View Changes
    1. issueid=5206 August 29, 2017 1:09 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Contributions attributed to wrong user

      An existing account was renamed. See user 67133
      A new member registered with the same name as the existing account. See user 350496.
      This all happened on VW3.
      Somehow with the import 349 wiki contributions of user 67133 were attributed to user 350496.
      Mind that not all of the contributions by user 67133 were attributed to 67133
    Issue Details
    Issue Number 5206
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Importing
    Status Fixed
    Priority 1 - Security / Login / Data Loss
    Affected Version 4.0.19
    Fixed Version 4.1.0 RC 1
    Milestone (none)
    Software DependencyXenForo 1.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. August 29, 2017 1:47 PM
      pegasus pegasus is offline
      VaultWiki Team
      The importer cannot lookup the users by user ID because the IDs can be different between source and target database. So the username is used to find matching users, based on the last username the user had on the source database. However, it looks like in many cases the username at the time of the edit is used rather than the last known username for that user; this is a bug. If the affected user is known, you could correct this with a MySQL query like so:
      Code:
      UPDATE target_db.vw_revision AS rev
      SET rev.userid = TARGET_CORRECT_ID
      WHERE rev.revisionid IN
      (SELECT imp.targetid AS revisionid FROM source_db.vault_revision AS rev2
      LEFT JOIN target_db.vw_import AS imp ON (imp.sourceid = rev2.revisionid AND imp.name = 'revision')
      WHERE rev2.userid = SOURCE_CORRECT_ID)
      This query will be slow but will reassociate the user's edits. Confirm that the edits are correctly attributed now. Then you will need to use the rebuild contributions tool.
      Reply Reply  
    2. September 14, 2017 6:00 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      #1142 - UPDATE command denied to user 'xxx'@'xxx' for table 'vw_revision'

      UPDATE target_db.vw_revision AS rev
      SET rev.userid = 67133
      WHERE rev.revisionid IN
      (SELECT imp.targetid AS revisionid FROM source_db.vault_revision AS rev2
      LEFT JOIN target_db.vw_import AS imp ON (imp.sourceid = rev2.revisionid AND imp.name = 'revision')
      WHERE rev2.userid = 350496)

      Please check the above syntax and my users. I need to re-associate the contributions of member 350496 to member 67133
      Reply Reply  
    3. September 16, 2017 10:23 AM
      pegasus pegasus is offline
      VaultWiki Team
      That error suggests that the MySQL user you executed the query under does not have permissions to both databases.

      As for the query itself, SOURCE_CORRECT_ID should be the correct user's user ID in vBulletin. TARGET_CORRECT_ID should be the correct user's user ID in XenForo.
      Reply Reply  
    4. September 16, 2017 12:22 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      There is no difference between the IDs in vb and XF so that part is correct.
      There is no user with access to both databases.
      Maybe its simpler: Source USER 350496 has No wiki contributions at all. All the edits by 350496 need to be attributed to 67133
      Reply Reply  
    5. September 16, 2017 12:26 PM
      pegasus pegasus is offline
      VaultWiki Team
      Yeah so if that's the case:
      Code:
      UPDATE vw_revision
      SET userid = 67133
      WHERE userid = 350496
      There are other types of contributions:
      Code:
      UPDATE vw_redirect
      SET userid = 67133
      WHERE userid = 350496
      Then rebuild the contribution counters.
      Reply Reply  
    6. September 16, 2017 12:34 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Thanks!
      Reply Reply  
    7. January 1, 2020 4:45 PM
      pegasus pegasus is offline
      VaultWiki Team
      Marking this as fixed in the next release. All relevant importers have been updated: when importing content from another forum database, the source user's current username will be preferred over the source user's username at the time of posting, for all user-generated content that stores the username.
      Reply Reply  
    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 4:07 PM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.