Bug 34825 - CSV-Import should deactivate univention-directory-notifier during import
CSV-Import should deactivate univention-directory-notifier during import
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: UMC - CSV Import
UCS@school 3.2 R2
Other Linux
: P5 normal (vote)
: UCS@school 3.2 R2
Assigned To: Dirk Wiesenthal
Sönke Schwardt-Krummrich
:
Depends on:
Blocks: 34826
  Show dependency treegraph
 
Reported: 2014-05-13 21:09 CEST by Sönke Schwardt-Krummrich
Modified: 2021-11-24 17:53 CET (History)
0 users

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
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 Sönke Schwardt-Krummrich univentionstaff 2014-05-13 21:09:37 CEST
To prevent problems with the sync between LDAP and S4, the CSV-Import should deactivate univention-directory-notifier during import.
Comment 1 Dirk Wiesenthal univentionstaff 2014-05-14 23:28:54 CEST
Added function to ucs-school-lib

from ucsschool.lib.models.utils import stopped_notifier

with stopped_notifier():
  import_users()

Stops a notifier if it is running, starts the notifier if it was running. Does so in a try: finally: clause.
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2014-05-15 15:54:12 CEST
OK: the CSV import module stops the notifier during import
OK: changes to ucs-school-lib

Changelog entry has been added.
Comment 3 Sönke Schwardt-Krummrich univentionstaff 2014-06-12 09:19:20 CEST
UCS@school 3.2 R2 has been released:
http://docs.univention.de/release-notes-ucsschool-3.2R2-de.html

If this error occurs again, please use "Clone This Bug".