Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-17074

Calling CFMatch::synchronize() wipes session

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.6.7
    • Fix Version/s: Unscheduled
    • Component/s: None
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      In Drupal 8, if I'm logged in and I create a Drupal user, the hook_user_insert() hook is fired and as part of this, CFMatch::synchronise() is called.

      However, on line 106 (https://github.com/civicrm/civicrm-core/blob/master/CRM/Core/BAO/UFMatch.php#L106) this function wipes my session and therefore logs me out.

      I can't rationalise what this function is actually trying to do. Can someone provide pointers as to why it's wiping my session? Should this function only ever be called to synchronise the current user?

        Attachments

          Activity

            People

            • Assignee:
              torrance123 Torrance
              Reporter:
              torrance123 Torrance
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: