Uploaded image for project: 'Santuario'
  1. Santuario
  2. SANTUARIO-383

NPE in DOMXMLSignature

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Java 1.5.6
    • Fix Version/s: Java 2.0.0, Java 1.5.7
    • Component/s: None
    • Labels:
      None

      Description

      DOMXMLSignature.validate is doing:

      ksResult = validateContext.getKeySelector().select
          (ki, KeySelector.Purpose.VERIFY, sm, validateContext);
      validationKey = ksResult.getKey();
      

      this while the javadoc on KeySelector states:

      Note that an inability to find a key is not considered an exception (null should be returned in that case).

      Hence you can get an NPE.

        Attachments

          Activity

            People

            • Assignee:
              coheigea Colm O hEigeartaigh
              Reporter:
              frank.cornelis Frank Cornelis
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: