Download & Extend

User importer is assigning all possible roles, despite being set to assign only one

Project:Feeds
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

I've created a user importer attached to a content type, with file upload fetcher, CSV parser, and user processor that takes email address and user name values and sets the email address as unique value. User processor settings are to make user active, give one additional role out of a possible five, and not update existing users. I've carried out a test import a few times, and each time all imported users are assigned all possible roles, including the unauthenticated role created by Logintoboggan.

I've tried changing the processor to assign 0 extra roles instead of 1, and changing the data being imported, but the problem remains.

Versions are Drupal 6.17, Feeds beta 2, Location_Feeds 6.x-1.1, Aegir 0.4-alpha8, php 5.2.6-1, CTools 6.x-1.6, Apache 2.2.9, Logintoboggan 6.x-1.7. Node processor custom-patched from #632920: Inherit properties from parent feed node (taxonomy, author, OG, language) but that shouldn't affect this. Let me know if you'd like any more info. Couldn't find anyone else with the same error, and I've tried drush cc all this time round, so it's not that!

Comments

#1

Version:6.x-1.0-beta2» 6.x-1.x-dev
Status:active» needs review

You've found a bug. This is the fix with tests. Running them now, if all pass, I'll commit shortly.

AttachmentSizeStatusTest resultOperations
854628-1_fix_roles.patch2.83 KBIgnored: Check issue status.NoneNone

#2

Status:needs review» fixed

This is fixed and committed to head, thank you.

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.