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

Error when instructor without Rubrics permissions tries to publish test

    XMLWordPrintable

    Details

    • 20 status:
      Resolved
    • 19 status:
      Resolved
    • Test Plan:
      1. Set a site where instructors don't have any rubrics permission.
      2. Access as instructor.
      3. Create and try to publish an assessment.
      4. Check it succeeds and no error messages are shown.

      Description

      On a site where an instructor doesn't have Rubrics permissions, Samigo is throwing an error when the instructor tries to publish an assessment. This happens because RubricService is returning a 401 that's not being managed.

      It seems the assessment is published anyway, but an unrelated screen message is shown.

      This error appears in the logs:

      26-Feb-2020 02:59:46.317 WARN [http-nio-20013-exec-8] org.sakaiproject.tool.assessment.ui.listener.author.PublishAssessmentListener.publish 401 null
      org.springframework.web.client.HttpClientErrorException: 401 null
      	at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:108)
      	at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:709)
      	at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:662)
      	at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:637)
      	at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:558)
      	at org.springframework.hateoas.client.Traverson$TraversalBuilder.getAndFindLinkWithRel(Traverson.java:428)
      	at org.springframework.hateoas.client.Traverson$TraversalBuilder.traverseToExpandedFinalUrl(Traverson.java:415)
      	at org.springframework.hateoas.client.Traverson$TraversalBuilder.toObject(Traverson.java:346)
      	at org.sakaiproject.rubrics.logic.RubricsServiceImpl.getRubricAssociationResource(RubricsServiceImpl.java:624)
      	at org.sakaiproject.rubrics.logic.RubricsServiceImpl.getRubricAssociation(RubricsServiceImpl.java:590)
      	at org.sakaiproject.rubrics.logic.RubricsServiceImpl.getRubricAssociation(RubricsServiceImpl.java:577)
      	at org.sakaiproject.tool.assessment.ui.listener.author.PublishAssessmentListener.publish(PublishAssessmentListener.java:264)
      	at org.sakaiproject.tool.assessment.ui.listener.author.PublishAssessmentListener.processAction(PublishAssessmentListener.java:174)
      	at javax.faces.event.ActionEvent.processListener(ActionEvent.java:96)
      	at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:839)
      	...
      

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                bergarvi Bernardo Garcia Vila
                Reporter:
                bergarvi Bernardo Garcia Vila
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration