Uploaded image for project: 'Rampart'
  1. Rampart
  2. RAMPART-347

Correct error message is masked due to a NullPointerException in SAMLTokenIssuer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6.1
    • None
    • rampart-trust
    • None
    • Ubuntu, Linux

    Description

      When rampart is unable to find "trusted certificate" for service address it gives a java.lang.NullPointerException. createHokAssertion method handles exception as follows,

      throw new TrustException(
      "errorInBuildingTheEncryptedKeyForPrincipal",
      new String[]

      { serviceCert.getSubjectDN().getName() }

      ,
      e);

      But serviceCert could be null and due to this the proper error message is masked with a NullPointerException.

      Attachments

        1. exception.txt
          3 kB
          Amila Jayasekara
        2. RAMPART-347.diff
          2 kB
          Amila Jayasekara

        Activity

          People

            Unassigned Unassigned
            amilaj Amila Jayasekara
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: