Plus: Single tool, 2 servers, date picker not available: Uncaught DOMException: Failed to read a named property 'sakai' from 'Window': Blocked a frame with origin "https://trunk-mysql8.nightly.sakaiproject.org" from accessing a cross-origin frame.

Description

I created the tenant on trunk-mysql8.nightly and added the tool on trunk-maria.nightly. The site was created on trunk-maria.nightly and the tool opens in an iframe.

The first part of the video shows the initial launch for the instructor ( https://sakaiproject.atlassian.net/browse/SAK-49443 ), the instructor then imported a question pool and created a quiz. Clicking on settings, there was a console error and no date pickers:

lang-datepicker.js:1877 Uncaught DOMException: Failed to read a named property 'sakai' from 'Window': Blocked a frame with origin "https://trunk-mysql8.nightly.sakaiproject.org" from accessing a cross-origin frame. at Plugin.init (https://trunk-mysql8.nightly.sakaiproject.org/library/js/lang-datepicker/lang-datepicker.js:1877:24) at new Plugin (https://trunk-mysql8.nightly.sakaiproject.org/library/js/lang-datepicker/lang-datepicker.js:1550:7) at HTMLInputElement.<anonymous> (https://trunk-mysql8.nightly.sakaiproject.org/library/js/lang-datepicker/lang-datepicker.js:1922:42) at Function.each (https://trunk-mysql8.nightly.sakaiproject.org/library/webjars/jquery/1.12.4/jquery.min.js?version=44920543:2:2881) at a.fn.init.each (https://trunk-mysql8.nightly.sakaiproject.org/library/webjars/jquery/1.12.4/jquery.min.js?version=44920543:2:846) at $.fn.<computed> [as sakaiDateTimePicker] (https://trunk-mysql8.nightly.sakaiproject.org/library/js/lang-datepicker/lang-datepicker.js:1920:15) at localDatePicker (https://trunk-mysql8.nightly.sakaiproject.org/library/js/lang-datepicker/lang-datepicker.js:1931:23) at HTMLDocument.<anonymous> (https://trunk-mysql8.nightly.sakaiproject.org/portal/plus/e8ace096-8a3c-4949-bb4d-eef09dd9dfbf/tool/9195cfa7-5f2b-41a8-89a1-1b8b6b1111ae/jsf/author/editAssessment:187:11) at i (https://trunk-mysql8.nightly.sakaiproject.org/library/webjars/jquery/1.12.4/jquery.min.js?version=44920543:2:27449) at Object.fireWith [as resolveWith] (https://trunk-mysql8.nightly.sakaiproject.org/library/webjars/jquery/1.12.4/jquery.min.js?version=44920543:2:28213)

Attachments

4
  • 28 Nov 2023, 01:53 AM
  • 28 Nov 2023, 01:52 AM
  • 16 Nov 2023, 02:23 AM
  • 16 Nov 2023, 02:22 AM

is incorporated by

Activity

Show:

Andrea Schmidt June 11, 2024 at 9:14 PM

Andrea Schmidt November 28, 2023 at 1:52 AM

The date picker works now if samigo is launched in a new window, however the iframe is giving a different error message now in the console:

Uncaught DOMException: Permission denied to access property "sakai" on cross-origin object init lang-datepicker.js:1877 Plugin lang-datepicker.js:1550 $.fn[pluginName]/< lang-datepicker.js:1922 jQuery 2 pluginName lang-datepicker.js:1920 localDatePicker lang-datepicker.js:1931 <anonymous> editAssessment:187 jQuery 8 lang-datepicker.js:1877
Won't Do

Details

Priority

Affects versions

23 Status

Please Merge

Assignee

Reporter

Environment

24x: https://trunk-maria.nightly.sakaiproject.org/, build: 44920543 24x: https://trunk-mysql8.nightly.sakaiproject.org/, build: 44920543
Created November 16, 2023 at 2:23 AM
Updated June 11, 2024 at 9:14 PM
Resolved June 11, 2024 at 9:14 PM

Flag notifications