Bug 51495 - school import configs new_user_passwords and user_import_summary cannot be used in ResultPyHook
school import configs new_user_passwords and user_import_summary cannot be us...
Status: NEW
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: 2020-06-15 14:31 CEST by Daniel Tröder
Modified: 2020-06-15 14:31 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?: ---
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 Daniel Tröder univentionstaff 2020-06-15 14:31:01 CEST
The configuration values of "new_user_passwords" and "user_import_summary" in the UCS@school import often contain date format strings. For example: "/var/lib/ucs-school-import/summary/%Y/%m/user_import_summary_%Y-%m-%d_%H:%M:%S.csv"

Currently they are only formatted to a concrete path when used. As the exact time of use is unknown, hooks cannot use this information to for example send those files by email.

Change the code so, that those values are evaluated to concrete values, before ResultPyHooks are called.