Tuscany
  1. Tuscany
  2. TUSCANY-2847

Tuscany Model loses AnyElements and AnyAttributes in the same namespace as the core sca namespace "http://www.osoa.org/xmlns/sca/1.0"

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: Java-SCA-1.3
    • Fix Version/s: None
    • Labels:
      None

      Description

      Tuscany Model loses AnyElements and AnyAttributes in the same namespace as the core sca namespace "http://www.osoa.org/xmlns/sca/1.0".

      Below is an example composite with an unknown element <binding.new> in the same namespace as "http://www.osoa.org/xmlns/sca/1.0". The example also contains an unkown attribute on the Service element.

      <?xml version="1.0" encoding="UTF-8"?>
      <composite xmlns="http://www.osoa.org/xmlns/sca/1.0" autowire="false" name="comp" targetNamespace="http://temp">
      <service name="service" unknownAttribute="value">
      <binding.ws name="wsName"/>
      <binding.new name="newName"/>
      </service>
      </composite>

        Activity

        Hide
        Luciano Resende added a comment -

        I'd recommend using two different jiras, one for anyElement and one for anyAttribute as they have different behavior in this scenario.
        Also, I have updated the following unitTest with the scenario you mentioned for anyElemtn (binding.new), and tests are still passing ok

        https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.3.3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadWriteAnyElementTestCase.java

        As for anyAttribute, our current Tuscany models does not have support for storing extra elements from same SCA NS.

        Show
        Luciano Resende added a comment - I'd recommend using two different jiras, one for anyElement and one for anyAttribute as they have different behavior in this scenario. Also, I have updated the following unitTest with the scenario you mentioned for anyElemtn (binding.new), and tests are still passing ok https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.3.3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadWriteAnyElementTestCase.java As for anyAttribute, our current Tuscany models does not have support for storing extra elements from same SCA NS.

          People

          • Assignee:
            Unassigned
            Reporter:
            Richard Mah
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development