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

refreshAuthzGroup method saves active and provider as true/false instead of 1/0.

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.9.x
    • Fix Version/s: 2.9.x, 10.0, 11.0
    • Component/s: Kernel
    • Labels:
    • 10 status:
      Resolved
    • Previous Issue Keys:
      KNL-1099

      Description

      The columns active and provided in SAKAI_REALM_RL_GR contains "1" or "0", but DbAuthzGroupService in refreshAuthzGroup method saves as "true"/"false".

      http://source.sakaiproject.org/viewsvn/kernel/trunk/kernel-impl/src/main/java/org/sakaiproject/authz/impl/DbAuthzGroupService.java?view=markup

      Line 2501 and 2502.

      fields[3] = uar.active;
      fields[4] = uar.provided;

      Instead of:

      fields[3] = uar.active ? "1" : "0";
      fields[4] = uar.provided ? "1" : "0";

      Use case (tested in hsql server http://nightly2.sakaiproject.org:8087/portal/):

      Log in as instructor.
      Create a course site.
      The site is created but every member is inactive (you have to access with admin to visit the site).

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  aaronz Aaron Zeckoski (Inactive)
                  Reporter:
                  jjmerono@um.es Juan José Meroño Sánchez
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code