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

Cannot change student permissions in Polls; console error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 21.1 [Tentative], 22.0 [Tentative]
    • Component/s: Polls
    • Labels:
      None
    • Environment:
      chrome, mac
    • 21 Status:
      Verified
    • Test Plan:
      Hide

      1. Login as an instructor and create or go into a course site. (This will work as admin)
      2. In the polls tool, with browser console open, open the permissions tab
      3. Select a few permissions for any role, then click save; browser console error and the page does not indicate that your selections were saved
      4. navigate to another tab, then return; changes you made are not saved.

      Show
      1. Login as an instructor and create or go into a course site. (This will work as admin) 2. In the polls tool, with browser console open, open the permissions tab 3. Select a few permissions for any role, then click save; browser console error and the page does not indicate that your selections were saved 4. navigate to another tab, then return; changes you made are not saved.

      Description

      If you try and give anyone different permissions in the Polls Permissions tab, there is a console error and your selection will not save. See screenshot below for the error. This is an issue with Sakai 21 and 22. Sakai 20 uses a different permission screen and dosen't have a problem.

      sakai-permissions.js?version=7c417f71:176 POST http://localhost:8080/direct/permissions/18900aca-60f2-4bd2-9574-1bbe1d5dc9ae/setPerms 403
      savePermissions @ sakai-permissions.js?version=7c417f71:176
      handleEvent @ parts.js?version=7c417f71:532
      EventPart.__boundHandleEvent @ parts.js?version=7c417f71:494
      sakai-permissions.js?version=7c417f71:193 Failed to save permissions for tool poll Error: Network response was not ok.
          at sakai-permissions.js?version=7c417f71:189
      (anonymous) @ sakai-permissions.js?version=7c417f71:193
      Promise.catch (async)
      savePermissions @ sakai-permissions.js?version=7c417f71:191
      handleEvent @ parts.js?version=7c417f71:532
      EventPart.__boundHandleEvent @ parts.js?version=7c417f71:494
      

      The 403 error from /direct is

      "Security exception handling request for view (/permissions/18900aca-60f2-4bd2-9574-1bbe1d5dc9ae/edit.html), this is typically caused by the current user not having access to the data requested or the user not being logged in at all :: message=The function poll.vote cannot be updated by the current user. (rethrown)"

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  jonespm Matthew Jones
                  Reporter:
                  tkelsey Thomas Kelsey
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration