Details

    • Type: Patch
    • Status: Resolved
    • Priority: Highest
    • Resolution: Fixed
    • Affects Version/s: 5.1.0-GA
    • Fix Version/s: 5.2.0-GA
    • Component/s: saml2-sso
    • Labels:
      None
    • Estimated Complexity:
      Moderate
    • Test cases added:
      Yes

      Description

      In compressResponse() method in SAMLSSOUtil,

      It is implemented as

              try {
                  deflaterOutputStream.write(response.getBytes(StandardCharsets.UTF_8));
                  return Base64.encodeBytes(byteArrayOutputStream.toByteArray(), Base64.DONT_BREAK_LINES);
              } finally {
                  deflaterOutputStream.close();
              }
      

      It must be corrected as followings

                  deflaterOutputStream.write(response.getBytes(StandardCharsets.UTF_8));
                  deflaterOutputStream.close();
                  return Base64.encodeBytes(byteArrayOutputStream.toByteArray(), Base64.DONT_BREAK_LINES);
      

      Or please verify correct way to do this.

        Attachments

          Activity

            People

            • Assignee:
              chamila@wso2.com Chamila Wijayarathna
              Reporter:
              asela@wso2.com Asela Pathberiya
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: