Uploaded image for project: 'Axiom'
  1. Axiom
  2. AXIOM-410

Exception when called setPrefix method of ElementImpl in axiom-dom

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.12
    • Fix Version/s: 1.2.13
    • Component/s: DOOM
    • Labels:
    • Environment:
      Ubuntu, jdk1.6.0_23

      Description

      In axiom-dom NodeImpl's [1] "setPrefix" method is implemented as follows,

      public void setPrefix(String prefix) throws DOMException

      { throw new DOMException(DOMException.NAMESPACE_ERR, DOMMessageFormatter .formatMessage(DOMMessageFormatter.DOM_DOMAIN, DOMException.NAMESPACE_ERR, null)); }

      According to current trunk the "setPrefix" method is not overridden at
      any child class. But this method is called from opensaml framework
      when document builder is set to axiom-dom one. Above method is called for Element (ElementImpl). Thus it throws DOMException.

      I am not sure why we should throw an Exception for Element. I override method with an empty body and according to my tests it works fine. (I have attached the patch).

      Please review the patch and apply.

      Thanks
      AmilaJ

        Attachments

        1. setprefix.diff
          0.7 kB
          Amila Jayasekara

          Issue Links

            Activity

              People

              • Assignee:
                veithen Andreas Veithen
                Reporter:
                amilaj Amila Jayasekara
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: