SafeExamBrowser / seb-server

The Safe Exam Browser Server web application simplifies and centralizes the configuration of SEB clients for exams. It interacts with a learning management or exam system for setting up and conducting e-assessments with Safe Exam Browser. It also improves security by allowing to monitor connected SEB clients in real time during e-assessments.
Mozilla Public License 2.0
46 stars 38 forks source link

"URLFilterRules" table in a "Configuration Template" allows only five entries, entries are not written to "whitelistURLFilter" attribute #97

Closed michaelhq closed 8 months ago

michaelhq commented 1 year ago

Hi,

If you try to add a sixth entry in "URLFilterRules" attribute table in a "Configuration Template" the last entry is overwritten. In addition, entries are in not written as RegEx string to "whitelistURLFilter" attribute (which is important for the configuration of URL filters for SEB on Windows according to my tests).

Steps to reproduce the behavior:

  1. Go to "Configuration Template"
  2. Open an exiting template or create a new one
  3. Enter six entries in the table of the URLFilterRules
  4. Close attribute with "View Configuration Tempate", attribute is saved
  5. reopen URLFilterRules, the fifth entry is missing, the sixth entry is the fifth one.
  6. Changes in the URLFilterRules table are not written as RegeEx string to the "whitelistURLFilter" attribute (In the SEB config tool on Windows and the SEB preferences on macOS the whitelistURLFilter attribute is set correctly in the exported configuration file).

Expected behavior All entries are saved in URLFilterRules tables and were written as RegEx string to whitelistURLFilter

Setup:

Workaround: Create configuration in Safe Exam Browser Windows or macOS, import it as "Exam Configuration", view imported "Exam Configuration" and "Save as Template".

anhefti commented 1 year ago

JIRA reference: SEBSERV-480

NadimETH commented 11 months ago

Hi @michaelhq

I was not able to reproduce the issue regarding the missing sixth entry in the table.

On first sight it looks like only 5 entries are visible: SEBSERV-480

Hovering over the table with your mouse reveals the scrollbar. Scroll down to see the other entries.

Please try again - if the bug still exists, provide your browser version and some screenshots.

The other issue regarding "whitelistURLFilter" is currently under review.

anhefti commented 11 months ago

We have clarified with the SEB developers that both SEB Settings, whitelistURLFilter and blacklistURLFilter are deprected (since SEB 3x) and not used anymore. Only the setting URLFilterRules is used.

Also whitelistURLFilter and blacklistURLFilter get soon removed in SEB Server.

michaelhq commented 11 months ago

Thank you for handling this issue.

I primarily use Mozilla Firefox on a daily basis for privacy reasons. I have now tested the whole thing with Google Chrome. This problem does not actually occur there. I have also tried the whole thing in Firefox's Safe Mode, it is the same behavior.

So it is a problem between the GUI of the SEB Server and Firefox. Can you please also test this with Firefox on one of your own systems?

Regarding whitelistURLFilter and blacklistURLFilter: Then these entries in the config tools on Windows and MacOS are only used for backward compatibility?

anhefti commented 11 months ago

Hi Michael

Regarding whitelistURLFilter and blacklistURLFilter: Then these entries in the config tools on Windows and MacOS are only used for backward compatibility?

Yes, this is old legacy code from former SEB and SEB Configuration Tools and is deprected. SEB do not read this settings anymore but only the URLFilterRules setting.

So it is a problem between the GUI of the SEB Server and Firefox. Can you please also test this with Firefox on one of your own systems?

I usually use Firefox (newest version) and I also don't get this issue there. Please be aware that the scroll bar only apears when you hover over the table input field: image

We have another Issue (from Luca Bösch) to make this table bigger (more than 5 entires). Maybe this will allso be helpfull with this issue.

michaelhq commented 11 months ago

Hi Andreas

I am using the same version of Firefox.

After I deleted all entries in the table and saved it, it works with firefox too. The specific Configuration Template was imported from e seb-file contains URL-filter settings. Perhaps the issue lies in the import function.