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

NPE in DOMXMLSignature

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Java 1.5.6
    • Java 2.0.0, Java 1.5.7
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: