Bug 50075 - Name Change for Teacher gets Error When Importing due to Email already taken
Name Change for Teacher gets Error When Importing due to Email already taken
Status: RESOLVED WONTFIX
Product: UCS@school
Classification: Unclassified
Component: Import scripts
UCS@school 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-08-28 11:37 CEST by Christian Völker
Modified: 2023-10-26 14:39 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.046
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2019071721000702
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Völker univentionstaff 2019-08-28 11:37:23 CEST
Import-file has has configured most important value as shown:
PersonalNr, Kürzel, Vorname, Nachname

Mapping:

Vorname: firstname
Nachname: lastname
Kürzel: Username
PersonalNR: employeeNumber
record_uid: <employeeNumber>
email: <username>@<maildomain>


First import csv for the user:
----------------------------------------------
PersonalNR;Kuerzel;Name;Vorname;GebDatum;Abteilung1
abc999;USR;User;UTest;1986-05-11;R
----------------------------------------------

Account gets created correctly.
 
Now name change due to marriage (all same except Name and Kuerzel):
----------------------------------------------
PersonalNR;Kuerzel;Name;Vorname;GebDatum;Abteilung1
abc999;USR-N;User-New;UTest;1986-05-11;R
----------------------------------------------

Import reporting an error:

UserValidationError: ValidationError when modifying
ImportTeacher(name=u'USR-N', school='XYZ',
dn=u'uid=USR-N,cn=lehrer,cn=users,ou=XYZ,dc=multi,dc=ucs',
old_dn='uid=USR,cn=lehrer,cn=users,ou=XYZ,dc=multi,dc=ucs')
(source_uid:ort-teacher-test record_uid: abc999): {'email': ['The
email address is already taken by another user. Please change the email
address.']} ValidationError({'email': ['The email address is already
taken by another user. Please change the email address.']},)


Expected behaviour:
Modify the object so it will have an different email-address.
Comment 1 Jan-Luca Kiok univentionstaff 2023-10-26 14:39:53 CEST
This issue has been filed against UCS@school 4.4.

UCS@school 4.4 is out of maintenance and components may have vastly changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer versions, please use "Clone this bug" or reopen this issue. In this case please provide detailed information on how this issue is affecting you.