SafeExamBrowser / seb-mac

Safe Exam Browser for macOS and iOS
https://www.safeexambrowser.org/macosx
102 stars 41 forks source link

Error validating SEB keys - Moodle + MacOS Sequoia #454

Open ehoving opened 3 weeks ago

ehoving commented 3 weeks ago

Describe the bug User cannot start SEB quiz from Moodle.

To Reproduce Steps to reproduce the behavior:

  1. Create Moodle Quiz with SEB enabled.
  2. Add a True/False question
  3. Install SEB
  4. Launch Exam from Moodle
  5. SEB redirects to Moodle log in.
  6. Log in.

Expected behavior Quiz start page should show, allow user to Attempt the quiz.

Screenshots Instead user gets the following error

shared image

SEB logs - error.log

Version Information OS 15.0 SEB 3.3.3 and SEB 3.4 - issue occurred on both versions. Moodle 4.4.4

Additional Context We keep getting mixed results from SEB. It was working on Windows devices for most users. Some user reporting similar error on Windows devices. Here is a log file from a Windows user. Im not sure if its related or separate issue.

SEB logs - window user error.log

danschlet commented 2 weeks ago

Your screen shot shows the error "unsupported URL", the log as well:

-[SEBAbstractWebView sebWebViewDidFailLoadWithError:]: Load Error: Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo={networkTaskMetricsPrivacyStance=Unknown, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <DC5A5B59-3B6C-4613-BF4A-DB644D1DC6D5>.<127>, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask <DC5A5B59-3B6C-4613-BF4A-DB644D1DC6D5>.<127>" ), NSLocalizedDescription=unsupported URL, _WKRecoveryAttempterErrorKey=<WKReloadFrameErrorRecoveryAttempter: 0x12de818f0>, networkTaskDescription=LocalDataTask <DC5A5B59-3B6C-4613-BF4A-DB644D1DC6D5>.<127>, NSErrorFailingURLStringKey=sebs://moodle.ucl.ac.uk/mod/quiz/accessrule/seb/config.php?cmid=7040658, NSUnderlyingError=0x12decb140 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}, NSErrorFailingURLKey=sebs://moodle.ucl.ac.uk/mod/quiz/accessrule/seb/config.php?cmid=7040658}

Are you using URL filters in your SEB config? If yes, you need to make sure not to block the URL used by SEB for starting the exam with this sebs:// URL. Disable URL filters to test if it works without them.

Otherwise please provide me access to a test exam where this can be reproduced. I can't reproduce it with neither SEB 3.3.3 nor 3.4 on macOS Sequoia. I nevertheless don't have access to Moodle 4.4.4.

ehoving commented 3 days ago

Thanks @danschlet this has resolved the issue for the user now. I was not aware you had to whitelist the launcher.

However, we are still having issues for some users. See the second log file I provided above. I believe it shows a 403 forbidden response. Do you know what might cause this? Would SEB be impacted by Cloudflare?

Any advice on the matter would be appreciated.