Skip to content

Fix cw copy for empty opencast blocks #1330

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dennis531
Copy link
Collaborator

Fixes the problem of missing token in opencast block payload during copy:

Exception: Could not store course mappings, missing data. in public/plugins_packages/elan-ev/OpencastV3/lib/Models/CoursewareBlockMappings.php:34
Stack trace:
#0 public/plugins_packages/elan-ev/OpencastV3/lib/BlockTypes/OpencastBlockV3.php(66): Opencast\Models\CoursewareBlockMappings::setRecord()
#1 lib/models/Courseware/Block.php(206): OpencastBlockV3->copyPayload()
#2 lib/models/Courseware/Container.php(163): Courseware\Block->copy()
#3 lib/models/Courseware/Container.php(148): Courseware\Container->copyBlocks()
#4 lib/models/Courseware/StructuralElement.php(1010): Courseware\Container->copy()
#5 lib/models/Courseware/StructuralElement.php(905): Courseware\StructuralElement->copyContainers()
#6 lib/models/Courseware/StructuralElement.php(1020): Courseware\StructuralElement->copy()
#7 lib/models/Courseware/Structur" while reading response header from upstream, request: "POST /jsonapi.php/v1/courseware-units/8499/copy HTTP/1.1"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant