From 64831e8a161e04f95720fddf6786cee8601d7a0b Mon Sep 17 00:00:00 2001 From: Torsten Simon Date: Thu, 10 Oct 2024 11:18:50 +0200 Subject: [PATCH] fix:cast exception when usage was present and lti object was rendered --- .../main/java/org/edu_sharing/restservices/shared/NodeUrls.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Backend/services/core/src/main/java/org/edu_sharing/restservices/shared/NodeUrls.java b/Backend/services/core/src/main/java/org/edu_sharing/restservices/shared/NodeUrls.java index ffd090ace..e3153c85f 100644 --- a/Backend/services/core/src/main/java/org/edu_sharing/restservices/shared/NodeUrls.java +++ b/Backend/services/core/src/main/java/org/edu_sharing/restservices/shared/NodeUrls.java @@ -14,7 +14,7 @@ public NodeUrls(Node node, String requestedVersion) { repositoryBaseUrl = URLHelper.getBaseUrl(true); if(node.getAspects().contains(CCConstants.getValidLocalName(CCConstants.CCM_ASPECT_LTITOOL_NODE))){ generateLtiResourceLink = repositoryBaseUrl + "/rest/ltiplatform/v13/generateLoginInitiationFormResourceLink?nodeId=" + node.getRef().getId(); - if(Context.getCurrentInstance() != null && Context.getCurrentInstance().getSessionAttribute(CCConstants.AUTH_SINGLE_USE_NODEIDS) != null){ + if(Context.getCurrentInstance() != null){ if(Context.getCurrentInstance().isSingleUseNodeId(node.getRef().getId())){ //generate short living jwt try {