CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • UF Match issues: duplicate Drupal user emails, NULL uf_name
Pages: [1]

Author Topic: UF Match issues: duplicate Drupal user emails, NULL uf_name  (Read 1725 times)

davej

  • Ask me questions
  • ****
  • Posts: 404
  • Karma: 21
UF Match issues: duplicate Drupal user emails, NULL uf_name
March 04, 2009, 04:31:00 am
Hi,

In Civi 2.1.6 / Drupal 6.9, if you edit the primary email address of an Individual that is linked to civicrm_uf_match & Drupal user records, this also updates the email (uf_name field) of the civicrm_uf_match record and the mail field of the Drupal user record. It appears that there is no check for duplicate Drupal user emails, so editing a Civi contact can result in Drupal users with duplicate emails. I believe this is something that Drupal strenuously avoids, e.g. because of the implications for password reminders. I expect this could be avoided by setting dupe checking rules accordingly in Civi. However it seems that by default, Civi allows something that is at the least strongly discouraged in Drupal. Any thoughts?

In the course of investigating this, I found that the civicrm_uf_match record created when a Drupal user is created has NULL in the uf_name (email) field, even though the Drupal user and the Civi contact created at the same time both have an email address. Is this a bug?

Cheers,

Dave J

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: UF Match issues: duplicate Drupal user emails, NULL uf_name
March 04, 2009, 12:29:19 pm

The first is a bug. can you please file an issue. we'll fix it in a future release. If important to your use case, considering filing a patch along with the issue :)

I could not reproduce the second problem on my localhost (running 2.2), but most of the code is exactly the same from 2.1, so i doubt it is a version issue

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • UF Match issues: duplicate Drupal user emails, NULL uf_name

This forum was archived on 2017-11-26.