Uploaded image for project: 'WS-Commons'
  1. WS-Commons
  2. WSCOMMONS-316

PolicyReference.serialize(..) does not declare policy namespace

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Policy
    • None
    • Windows XP, Tomcat 5.5, Axis2 1.3, Neethi 2.0.2

    Description

      The PolicyReference.serialize(..) method does not write namespace declarations (e.g. for the "wsp" namespace).
      This happens to be a problem, when a PolicyReference instance is serialized to a non-namespace repairing XMLOutputWriter as it happens in Axis2 PolicyUtil.getPolicyComponentAsOMElement(..).
      The issue appears only if the PolicyReference is serialized and then parsed as a single element, since if it is part of a larger document, it will most probably
      already contain the namespace declaration.

      Attachments

        1. PolicyReference.patch
          0.6 kB
          Detelin Yordanov

        Activity

          People

            Unassigned Unassigned
            detyo Detelin Yordanov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: