Bug 38004 - Reboot is also performed on the teacher's computer / Start exam mode only on selected computers
Reboot is also performed on the teacher's computer / Start exam mode only on ...
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: UMC - Exam mode
UCS@school 4.0
Other Linux
: P5 normal (vote)
: UCS@school 4.0 R2
Assigned To: Florian Best
Alexander Kramer
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-03-11 10:30 CET by Sönke Schwardt-Krummrich
Modified: 2015-05-11 19:24 CEST (History)
1 user (show)

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 2015-03-11 10:30:16 CET
If a teacher uses a computer of the computer room for which he is about to start the exam mode, the computer will be restarted together will all student computers.

This way, the teacher will loose its Windows and UMC session and has to relogin after reboot.

The exam mode should detect, which host/IP address is used for starting the exam mode (the computerroom uses this automagic detection mechanism already for preselection of the correct computerroom). 

Optional extension:
If this detection fails and the used IP address is no member of the computerroom, it should be checked if a teacher is logged on in the selected exam computerroom and a reboot should be avoided for this computer.
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2015-03-20 14:14:29 CET
Some teachers want to start the exam mode within a computerroom only for a selected group of computers. This is often the case if one or more students have to resit a missed exam.

From the technical perspective this use case is very similar to the report above.
Comment 2 Florian Best univentionstaff 2015-04-17 14:53:45 CEST
Partly WORKSFORME.

I cannot reproduce that a teacher computer was shutdown if the teacher is logged in.

I made it possible to select computers for reboot instead of rebooting every as 'necessary' flagged computer. This allows also to reboot teacher computers!

Fix: svn r59817
Package: ucs-school-umc-exam
Comment 3 Sönke Schwardt-Krummrich univentionstaff 2015-04-20 13:41:01 CEST
As discussed a few seconds ago, the reboot page should also check against the IP address of the current UMC user's browser. Otherwise there might be the chance that the user hits the "next" button too fast (iTALC was not finished with determination of students/teachers) and indirectly reboots its own computer.
Comment 4 Florian Best univentionstaff 2015-04-20 15:30:24 CEST
(In reply to Sönke Schwardt-Krummrich from comment #3)
> As discussed a few seconds ago, the reboot page should also check against
> the IP address of the current UMC user's browser. Otherwise there might be
> the chance that the user hits the "next" button too fast (iTALC was not
> finished with determination of students/teachers) and indirectly reboots its
> own computer.
Okay, I implemented this in svn r59979.
Comment 5 Alexander Kramer univentionstaff 2015-04-24 11:47:50 CEST
As discussed the selected restart does not work.
Comment 6 Florian Best univentionstaff 2015-04-24 12:06:09 CEST
(In reply to Alexander Kramer from comment #5)
> As discussed the selected restart does not work.
yes, it was caused by the modulestore which returned items with lists as attributes instead of strings.
Comment 7 Alexander Kramer univentionstaff 2015-04-24 14:53:32 CEST
OK - debian changelog

OK - xml changelog

OK - The exam mode should detect, which host/IP address is used for starting the exam mode (the computerroom uses this automagic detection mechanism already for preselection of the correct computerroom).

OK - If this detection fails and the used IP address is no member of the computerroom, it should be checked if a teacher is logged on in the selected exam computerroom and a reboot should be avoided for this computer.

OK - Some teachers want to start the exam mode within a computerroom only for a selected group of computers.
Comment 8 Sönke Schwardt-Krummrich univentionstaff 2015-04-24 15:01:32 CEST
(In reply to Alexander Kramer from comment #7)
> OK - Some teachers want to start the exam mode within a computerroom only
> for a selected group of computers.

Please note:
still all computer of the selected room will get a member of the exam mode, but since not all computer have to be restarted, the exam mode doesn't come into effect on the non-rebooted computers.
If one of those computers crash or is rebooted manually, it will start in exam mode like the other ones that have been rebooted (manually or automatically).

This is still a workaround with certain requirements!
Comment 9 Florian Best univentionstaff 2015-05-11 19:24:49 CEST
UCS@school 4.0 R2 v1 has been released:
http://docs.univention.de/release-notes-ucsschool-4.0R2v1-de.html

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