You are not authorized to access this page

Created on 5 August 2021, over 3 years ago
Updated 11 September 2024, 2 months ago

I am on D8 and logged in as admin. When I take the last question and finish, instead of showing the result, it gives access denied error. Following is from the logs:
Access Denied
Path: /quiz/1/take/3/feedback. Drupal\Core\Http\Exception\CacheableAccessDeniedHttpException: in Drupal\Core\Routing\AccessAwareRouter->checkAccess() (line 117 of C:\laragon\www\quiz\web\core\lib\Drupal\Core\Routing\AccessAwareRouter.php).

πŸ› Bug report
Status

Closed: outdated

Version

7.0

Component

Code - Feedback/results

Created by

πŸ‡΅πŸ‡°Pakistan ugintl

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¨πŸ‡¦Canada dale42 Vancouver, Canada

    We have encountered this issue when quiz takers use the browser back button to go back from the review page to the question page. Feedback from Client: This is allowed behaviour in other quiz systems they use, like H5P, so a natural behaviour for their users.

    We were hoping for an easy fix, like using the Javascript beforeunload event to tell the user their quiz results would be lost if they left the page. Unfortunately, a security feature named Sticky Activation means it won't work in this use case. Though the quiz taker has viewed the quiz results page, they typically haven't interacted with it, so the event won't fire.

    I think to resolve this, the following would be required:

    1. Update QuizQuestionController to allow access on any question in an active quiz
    2. Update QuizQuestionAnsweringForm to detect if taker is not on the current question, provide a message, and provide a button to take them to the correct question

    Thoughts?

  • Status changed to Active over 1 year ago
  • πŸ‡¨πŸ‡¦Canada dale42 Vancouver, Canada
  • Status changed to Postponed: needs info 4 months ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Will need exact steps to reproduce.

  • Status changed to Closed: outdated 2 months ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Since there has been no follow up for over a month going to close out.

Production build 0.71.5 2024