Bug 46800 - [4.2] store user_import_summary and new_user_passwords files in subfolders
[4.2] store user_import_summary and new_user_passwords files in subfolders
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: Import scripts
UCS@school 4.2
Other Linux
: P5 normal (vote)
: UCS@school 4.2 v9
Assigned To: Daniel Tröder
Jürn Brodersen
:
Depends on: 46799
Blocks: 46923
  Show dependency treegraph
 
Reported: 2018-04-09 16:16 CEST by Daniel Tröder
Modified: 2018-06-04 15:34 CEST (History)
0 users

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?:
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 Daniel Tröder univentionstaff 2018-04-09 16:16:16 CEST
Backport changes from Bug #46799 to UCS@school 4.2.

+++ This bug was initially created as a clone of Bug #46799 +++

The ucs-school-user-import cmdline tool stores the CSV files containing the import job summary and the passwords and in files directly in /var/lib/ucs-school-import/.
After a while that directory fills up with hundreds or thousands of files.
The HTTP-API driven import stores its files in a folder below that directory and the user configuration files are there too. The summary files get in the way.

Store the summary files in subfolders of /var/spool/ucs-school-import/:
* summary/$YEAR/$MONTH
* passwords/$YEAR/$MONTH

Enable output of new-user passwords CSV by default, as that's what most users want (and is the default for the HTTP-API driven import).
Comment 1 Daniel Tröder univentionstaff 2018-04-09 17:42:59 CEST
[4.2 c7f916d4] Bug #46800: store cmdline user import summary and passwords in separate folders, enable password CSV file generation by default
[4.2 416df345] Bug #46800: changelog
[4.2 b8757cd9] Bug #46800: adapt manual
[4.2 842d0d95] Bug #46800: advisory

ucs-school-import (15.0.3-32)
Comment 2 Daniel Tröder univentionstaff 2018-04-11 16:47:48 CEST
[4.2 8997d793] Bug #46800: don't change default for 'new_user_passwords' setting
[4.2 6f33d69d] Bug #46800: changelog
[4.2 7013e272] Bug #46800: advisory update

ucs-school-import (15.0.3-34)
Comment 3 Jürn Brodersen univentionstaff 2018-04-12 11:06:20 CEST
OK
Import works ->
Summary is stored under /var/lib/ucs-school-import/summary/$YEAR/$MONTH/user_import_summary_$DATE.csv -> OK

-> Verified
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2018-05-02 17:52:59 CEST
UCS@school 4.2 v9 has been released.

https://docs.software-univention.de/changelog-ucsschool-4.2v9-de.html

If this error occurs again, please clone this bug.