Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-34079

Linking to Assignment in CKEditor not working

    Details

    • Type: Bug
    • Status: Verified
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 12.0, 12.1, 13.0 [Tentative]
    • Fix Version/s: 12.1, 13.0 [Tentative]
    • Component/s: Assignments
    • Labels:
      None
    • 12 status:
      Resolved
    • Test Plan:
      Hide

      (I haven't tested this but I believe the plan would be)

      • As instructor: In a site with at least Assignments and Announcements, create an assignment that is open now
      • instructor: Go into announcements, to go CKEditor, click the Link button, Browse Server
      • instructor: Select the assignment in the course
      • student: Take the assignment. (this is where the error occurred). 

      This should link to the assignment, it was reported that this isn't working.

      Show
      (I haven't tested this but I believe the plan would be) As instructor: In a site with at least Assignments and Announcements, create an assignment that is open now instructor: Go into announcements, to go CKEditor, click the Link button, Browse Server instructor: Select the assignment in the course student: Take the assignment. (this is where the error occurred).  This should link to the assignment, it was reported that this isn't working.

      Description

      Reported by Derek Ramsey in SAK-34036.

      Linking to an assignment in the ckeditor does not work. After linking to an assignment and saving, selecting that link displays an HTTP 500 error as both the student and instructor. Linking to Resources and Samigo is working properly.

      This is the error the user gets

      message Direct request failure: EntityNotFoundException:No assignment found:Direct request failure: EntityNotFoundException:No assignment found: Sakai version: 13-SNAPSHOT(DEMO) Server: localhost(matt-VirtualBox) [matt-VirtualBox-1523375748223] Request URI: /direct/assignment/c40869be-2e4b-43e3-88d7-fee5685e7dc5 Path Info: /assignment/c40869be-2e4b-43e3-88d7-fee5685e7dc5 Context path: /direct Method: GET Server: matt-VirtualBox-1523375748223 User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36 Browser ID: Win-Mozilla IP address: 127.0.0.1 User ID: ab2fd363-4df5-4d22-96ef-5db8ade4cdda User EID: instructor User Display ID: instructor
      

      and the exception

      Caused by: org.sakaiproject.exception.IdUnusedException id: /assignment/c40869be-2e4b-43e3-88d7-fee5685e7dc5
      	at org.sakaiproject.assignment.impl.AssignmentServiceImpl.getAssignment(AssignmentServiceImpl.java:1236)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      	at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
      	at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282)
      	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
      	at com.sun.proxy.$Proxy147.getAssignment(Unknown Source)
      	at org.sakaiproject.assignment.entityproviders.AssignmentEntityProvider.getProperties(AssignmentEntityProvider.java:513)
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ern Earle R Nietzel
                  Reporter:
                  drramsey Derek Ramsey
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code