Bug 49443 - Do not remove exam users home directory by default
Do not remove exam users home directory by default
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: UMC - Exam mode
UCS@school 4.4
Other Linux
: P5 normal (vote)
: UCS@school 4.4 v3
Assigned To: Ole Schwiegert
Daniel Tröder
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-05-10 09:37 CEST by Ole Schwiegert
Modified: 2019-05-29 14:04 CEST (History)
0 users

See Also:
What kind of report is it?: Feature Request
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 Ole Schwiegert univentionstaff 2019-05-10 09:37:39 CEST
User Story from Trello Board:

Als Lehrkraft möchte ich, wenn alles schief läuft und einer meiner SchülerInnen mir sagt, dass sie die Datei nicht im vorgesehenen Ordner gespeichert hat, zusammen mit meinem Schuladministrator nochmal in die Heimatverzeichnisse schauen können um sicher zu gehen, dass auch wirklich nicht versehentlich wo anders etwas gespeichert wurde.

    Gerne per Kommandozeile
    Schuladministrator sollte Zugang auf Heimatverzeichnisse haben

Sönke: schon umgesetzt:
ucr set ucsschool/exam/user/homedir/autoremove=no
→ Variable bei allen Installationen (Neuinstallation und Update) setzen
Comment 1 Ole Schwiegert univentionstaff 2019-05-10 12:08:47 CEST
Package: ucs-school-umc-exam
Version: 9.0.1-0A~4.4.0.201905101205
Branch: ucs_4.4-0
Scope: ucs-school-4.4


Changes:
- ucsschool/exam/user/homedir/autoremove is not set anymore to any value if none was set before
- With this update the variable ucsschool/exam/user/homedir/autoremove will be unset once
- The default for the unset UCRV is now False. Modified in code and UCRV definition.
- The variable was added to the manual
- A detailed note about these changes was left in the advisory.
Comment 2 Daniel Tröder univentionstaff 2019-05-10 13:31:42 CEST
Commits for this bug with wrong bug number:

[4.4] 27a4cb225 Bug #49433: Change default of ucsschool/exam/user/homedir/autoremove to False
[4.4] 3f7cd83a2 Bug #49433: Unset ucsschool/exam/user/homedir/autoremove once upon upgrade

(In reply to Ole Schwiegert from comment #1)
> Changes:
> - ucsschool/exam/user/homedir/autoremove is not set anymore to any value if
> none was set before
OK
> - With this update the variable ucsschool/exam/user/homedir/autoremove will
> be unset once
OK: in /var/log/univention/config-registry.replog:
2019-05-10 12:48:52: unset 'ucsschool/exam/user/homedir/autoremove' old:yes
> - The default for the unset UCRV is now False. Modified in code and UCRV
> definition.
OK
> - The variable was added to the manual
OK
> - A detailed note about these changes was left in the advisory.
OK, updated package version in advisory:
[4.4 29368a01f] Bug #49443: advisory update

REOPEN: listener module "remove-old-homedirs" from package "ucs-school-old-homedirs" (installed by ucs-school-slave and ucs-school-singlemaster) doesn't honor UCRV ucsschool/exam/user/homedir/autoremove.
Comment 3 Ole Schwiegert univentionstaff 2019-05-13 10:13:38 CEST
Package: ucs-school-old-homedirs
Version: 14.0.1-0A~4.4.0.201905131011
Branch: ucs_4.4-0
Scope: ucs-school-4.4

Fixed with discussed patch
Comment 4 Daniel Tröder univentionstaff 2019-05-13 10:21:32 CEST
OK: remove-old-homedirs honors UCRV
OK: advisories
Comment 5 Sönke Schwardt-Krummrich univentionstaff 2019-05-29 14:04:52 CEST
UCS@school 4.4 v2 has been released.

https://docs.software-univention.de/changelog-ucsschool-4.4v2-de.html

If this error occurs again, please clone this bug.