[ 
http://issues.apache.org/jira/browse/TUSCANY-447?page=comments#action_12456324 
] 
            
Simon Laws commented on TUSCANY-447:
------------------------------------

Looking back at this I realize that there isn't enough detail here. 

This was the result of running the interop test schema/xml through C++ SDO.  
The tests involve reading and XML document from file and writing it out again.  
It doesn't (yet) test whether the data is presented and managed correctly 
through the SDO API. In particular this is test 33. The schema for the test is:

<schema xmlns="http://www.w3.org/2001/XMLSchema"; 
        targetNamespace="http://www.apache.org/tuscany/interop"; 
        xmlns:tns="http://www.apache.org/tuscany/interop";
        xmlns:sdo="commonj.sdo">
          
  <attribute name="AttributeReference" type="string"/>    
   
  <complexType name="ComplexTypeAttributesTestType">
    <sequence>
    </sequence> 
    <attribute name="Attribute" type="string"/>
    <attribute name="AttributeWithSDOName" 
sdo:name="AttributeWithSDONameSDOName" type="string"/>
    <attribute name="AttributeWithSDOAliasName" 
sdo:aliasName="AttributeWithSDOAliasNameSDOAliasName" type="string"/>
    <attribute name="AttributeWithDefaultValue" type="string" 
default="AttributeWithDefaultValueDefaultValue"/>
    <attribute name="AttributeWithFixedValue" type="string" 
fixed="AttributeWithFixedValueFixedValue"/> 
    <attribute ref="tns:AttributeReference"/>   
    <attribute name="AttributeWithSDOString" type="string" sdo:string="true"/>  
   
    <attribute name="AttributeWithSDOPropertyType" type="IDREF" 
sdo:propertyType="tns:SimpleTypeWithNameType"/> 
    <attribute name="AttributeWithSDOPropertySDOOppositePropertyType" 
type="IDREF" sdo:propertyType="tns:SimpleTypeWithNameType" 
sdo:oppositeProperty="tns:AttributeWithSDOPropertyType"/>     
    <attribute name="AttributeWithSDODataType" sdo:dataType="string" 
type="string"/>
  </complexType> 
                 
  <element name="RootElement33">
    <complexType>
      <sequence>
        <element name="ComplexTypeAttributesTest" 
type="tns:ComplexTypeAttributesTestType"/>
      </sequence>
    </complexType>
  </element>
</schema>

And the input document is:

<RootElement33 xmlns="http://www.apache.org/tuscany/interop";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xsi:schemaLocation="http://www.apache.org/tuscany/interop 
interop33.xsd">

  <ComplexTypeAttributesTest Attribute="Attribute" 
                             
AttributeWithDefaultValue="AttributeWithDefaultValueDefaultValue" 
                             
AttributeWithFixedValue="AttributeWithFixedValueFixedValue" 
                             
AttributeWithSDOAliasName="AttributeWithSDOAliasName" 
                             
AttributeWithSDODataType="AttributeWithSDODataType" 
                             AttributeWithSDOName="AttributeWithSDODataType" 
                             
AttributeWithSDOPropertySDOOppositePropertyType="idvalue0" 
                             AttributeWithSDOPropertyType="idvalue0" 
                             AttributeWithSDOString="AttributeWithSDOString" 
                             AttributeReference="AttributeReference"/>          
</RootElement33>

It seems when this was run back in June the output was different from the input 
for in the following ways:

AttributeWithSDONameSDOName="AttributeWithSDODataType" - has adopted the SDO 
name on output 
AttributeWithSDOPropertySDOOppositePropertyType="idvalue0" - is missing
AttributeWithSDOPropertyType="idvalue0"  - is missing

I'm not sure wether this result is actually incorrect or not. There could be a 
number of reasons

My understand of the spec is wrong. 
The code is wrong
The spec is unclear.

We should re-run the tests now to see if the result has changed at all.

> AttributeWithSDOPropertyType and 
> AttributeWithSDOPropertySDOOppositePropertyType not supported
> ----------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-447
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-447
>             Project: Tuscany
>          Issue Type: Bug
>          Components: C++ SDO
>    Affects Versions: Cpp-current
>         Environment: Windows XP
>            Reporter: Simon Laws
>             Fix For: Cpp-current
>
>
> reading 
>   <ComplexTypeAttributesTest Attribute="Attribute" 
>                              
> AttributeWithDefaultValue="AttributeWithDefaultValueDefaultValue" 
>                              
> AttributeWithFixedValue="AttributeWithFixedValueFixedValue" 
>                              
> AttributeWithSDOAliasName="AttributeWithSDOAliasName" 
>                              
> AttributeWithSDODataType="AttributeWithSDODataType" 
>                              AttributeWithSDOName="AttributeWithSDODataType" 
>                              
> AttributeWithSDOPropertySDOOppositePropertyType="idvalue0" 
>                              AttributeWithSDOPropertyType="idvalue0" 
>                              AttributeWithSDOString="AttributeWithSDOString" 
>                              tns:AttributeReference="AttributeReference"
> and writing out again gives rise to 
>       <ComplexTypeAttributesTest Attribute="Attribute"
>               AttributeWithSDONameSDOName="AttributeWithSDODataType"
>               AttributeWithSDOAliasName="AttributeWithSDOAliasName"
>               
> AttributeWithDefaultValue="AttributeWithDefaultValueDefaultValue"
>               AttributeWithFixedValue="AttributeWithFixedValueFixedValue"
>               AttributeReference="AttributeReference"
>               AttributeWithSDOString="AttributeWithSDOString"
>               AttributeWithSDODataType="AttributeWithSDODataType" />

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to