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

Incorrect redirect in processPermissions() in ReportsTool.java

    Details

    • Type: Bug
    • Status: RESOLVED
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.6.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      MacOSX 10.5, Java 1.5 Msql

      Description

      Permissions in Reports no working when Russian language using, becouse redirect url not escaping.
      in processPermissions() in ReportsTool.java:

      String url = "sakai.permissions.helper.helper/tool?" +
      "&session." + PermissionsHelper.TARGET_REF + "=" +
      getWorksite().getReference() +
      "&session." + PermissionsHelper.PREFIX + "=" +
      getReportFunctionPrefix();

      should be

      String url = "sakai.permissions.helper.helper/tool?" +
      "session." + PermissionsHelper.DESCRIPTION + "=" +
      java.net.URLEncoder.encode(getPermissionsMessage(),"UTF-8") +
      "&session." + PermissionsHelper.TARGET_REF + "=" +
      getWorksite().getReference() +
      "&session." + PermissionsHelper.PREFIX + "=" +
      getReportFunctionPrefix();

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                osp-jira OSP Jira Team (Inactive)
                Reporter:
                zlobec Dmitry Petrenko (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code