Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8139

SecurityToken, parsing the lifetime may cause a NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.6
    • 3.3.5, 3.2.12, 3.4.0
    • STS
    • None
    • Unknown

    Description

      According to http://docs.oasis-open.org/ws-sx/ws-trust/200512/ws-trust-1.3-os.html the wsu:Created and wsu:Expires are optional elements in /wst:RequestSecurityToken/wst:Lifetime.

      When creating the org.apache.cxf.ws.security.tokenstore.SecurityToken using a lifetime Element where not both (created and expired) elements are set, a NullPointerException is thrown as there is no null-check on the child elements of the lifetime element.

      Attachments

        Activity

          People

            coheigea Colm O hEigeartaigh
            dbaumann Daniel Baumann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: