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

org.apache.rahas.Token constructor expects lifetimeelement to be present, but the element is optional according to the standard.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • rampart-trust
    • None
    • Latest trunk of rampart + wss4j on windows xp.

    Description

      The org.apache.rahas.client.STSClient.processIssueResponse class tries to create a Token object with lifetime object as an argument. This lifetime object is optional, but the Token constructor fails if it's null.

      Since SAML1.1 has it's own lifetime element build into the assertion, it doesn't need to use the Token lifetime element, so it would be nice if this element could be optional.

      Index: C:/src/Main/java/Rampart-svn/modules/rampart-trust/src/main/java/org/apache/rahas/Token.java
      ===================================================================
      — C:/src/Main/java/Rampart-svn/modules/rampart-trust/src/main/java/org/apache/rahas/Token.java (revision 650441)
      +++ C:/src/Main/java/Rampart-svn/modules/rampart-trust/src/main/java/org/apache/rahas/Token.java (working copy)
      @@ -151,7 +151,8 @@
      tokenElem.getXMLStreamReader());
      stAXOMBuilder.setNamespaceURIInterning(true);
      this.token = stAXOMBuilder.getDocumentElement();

      • this.processLifeTime(lifetimeElem);
        + if ( lifetimeElem != null )
        + this.processLifeTime(lifetimeElem);
        }

      /**

      Attachments

        Activity

          People

            nandana.cse Nandana Mihindukulasooriya
            rhelwigh Rasmus Rhein Helwigh
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified