Bug 46799 - [4.3] store user_import_summary and new_user_passwords files in subfolders
[4.3] 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.3
Other Linux
: P5 normal (vote)
: UCS@school 4.3 v3
Assigned To: Daniel Tröder
Jürn Brodersen
:
Depends on:
Blocks: 46800 46924
  Show dependency treegraph
 
Reported: 2018-04-09 16:15 CEST by Daniel Tröder
Modified: 2018-06-04 15:27 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:15:08 CEST
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:48 CEST
[4.3 cfcb9d84] Bug #46799: store cmdline user import summary and passwords in separate folders, enable password CSV file generation by default
[4.3 db306b56] Bug #46799: changelog
[4.3 0116faa7] Bug #46799: adapt manual
[4.3 0751c0af] Bug #46799: advisory

ucs-school-import (16.0.1-18)
Comment 2 Daniel Tröder univentionstaff 2018-04-11 16:45:33 CEST
The default for the new-user passwords CSV has been reverted back to not generate it.

[4.3 f2bd0fd6] Bug #46799: don't change default for 'new_user_passwords' setting
[4.3 06d31e59] Bug #46799: changelog

ucs-school-import (16.0.1-22)
Comment 3 Jürn Brodersen univentionstaff 2018-04-12 11:06:29 CEST
OK
Import works and 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:59:05 CEST
UCS@school 4.3 v3 has been released.

https://docs.software-univention.de/changelog-ucsschool-4.3v3-de.html

If this error occurs again, please clone this bug.