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

All admin users should be able to edit Default Assessment Template

    XMLWordPrintable

    Details

    • 21 Status:
      Verified
    • 20 status:
      Verified
    • 19 status:
      Verified
    • Test Plan:
      Hide

      1. Login as admin
      2. Edit Default Assessment Template in Tests * Quizzes -> Assessment Templates in any site
      3. Create another admin user by editing Administration Workspace -> Realms -> /site/!admin -> Grant Ability -> admin
      4. Login as second admin user
      5. Go to same site as in (2) and attempt to edit and save. Confirm that your changes were saved.

      Expected result: changes saved as any admin user. No stack traces in logs.

      Show
      1. Login as admin 2. Edit Default Assessment Template in Tests * Quizzes -> Assessment Templates in any site 3. Create another admin user by editing Administration Workspace -> Realms -> /site/!admin -> Grant Ability -> admin 4. Login as second admin user 5. Go to same site as in (2) and attempt to edit and save. Confirm that your changes were saved. Expected result: changes saved as any admin user. No stack traces in logs.

      Description

      Default Assessment Template update still requires author matching

      22-Sep-2020 18:57:12.895 INFO [http-nio-9080-exec-6] org.sakaiproject.tool.assessment.ui.listener.author.TemplateUpdateListener.updateAssessment trying to update template not your own admin postmaster
      22-Sep-2020 18:57:12.895 ERROR [http-nio-9080-exec-6] org.sakaiproject.tool.assessment.ui.listener.author.TemplateUpdateListener.updateAssessment Attempted to update template owned by another author admin postmaster
      javax.faces.event.AbortProcessingException: Attempted to update template owned by another author admin postmaster
              at org.sakaiproject.tool.assessment.ui.listener.author.TemplateUpdateListener.updateAssessment(TemplateUpdateListener.java:189)
              at org.sakaiproject.tool.assessment.ui.listener.author.TemplateUpdateListener.processAction(TemplateUpdateListener.java:120)
              at javax.faces.event.ActionEvent.processListener(ActionEvent.java:96)
              at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:839)
              at javax.faces.component.UICommand.broadcast(UICommand.java:315)
              at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:870)
              at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1418)
              at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
              at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:201)
              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:670)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
              at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
              at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:447)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
              at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:712)
              at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:459)
              at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:384)
              at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
              at org.sakaiproject.jsf.util.SamigoJsfTool.dispatch(SamigoJsfTool.java:360)
      

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                agschmidt Andrea Schmidt
                Reporter:
                ottenhoff Sam Ottenhoff
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration