Uploaded image for project: 'HERAS-AF XACML Core'
  1. XACMLCORE-215

Unmarshalling of empty string attributes in XACML requests results in null values

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects versions: 1.0.0.M3
    • Fix versions: 1.0.4.RELEASE
    • Components: Data Type Attributes
    • Labels:
      None
    • Environment:

      any

    • Number of Attachments:
      2
    • Number of Comments:
      1
    • Sprint:

      Description

      Evaluating the example request (xacmlEmptyAttributeRequest.xacml) against the example policy (policy-empty-attributes.xacml) results in a null pointer exception on line 203 of org.herasaf.xacml.core.policy.impl.AttributeDesignatorType.
      I would expect the empty AttributeValue to unmarshal to an empty string as attribute value content for two reasons:

      • The attribute designators give a null pointer exception (as described)
      • String manipulation functions expect string attributes to not be null
      • It is not clear how an empty string would otherwise be marshalled than as an empty attribute.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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