You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Simon Laws (JIRA)" <tu...@ws.apache.org> on 2006/06/06 17:53:30 UTC

[jira] Created: (TUSCANY-447) AttributeWithSDOPropertyType and AttributeWithSDOPropertySDOOppositePropertyType not supported

AttributeWithSDOPropertyType and AttributeWithSDOPropertySDOOppositePropertyType not supported 
-----------------------------------------------------------------------------------------------

         Key: TUSCANY-447
         URL: http://issues.apache.org/jira/browse/TUSCANY-447
     Project: Tuscany
        Type: Bug

  Components: C++ SDO  
    Versions: Cpp-current    
 Environment: Windows XP
    Reporter: Simon Laws


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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-447) AttributeWithSDOPropertyType and AttributeWithSDOPropertySDOOppositePropertyType not supported

Posted by "ant elder (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-447?page=all ]

ant elder updated TUSCANY-447:
------------------------------

    Fix Version/s: Cpp-current

> 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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-447) AttributeWithSDOPropertyType and AttributeWithSDOPropertySDOOppositePropertyType not supported

Posted by "Simon Laws (JIRA)" <tu...@ws.apache.org>.
    [ 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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-447) AttributeWithSDOPropertyType and AttributeWithSDOPropertySDOOppositePropertyType not supported

Posted by "Yang ZHONG (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-447?page=all ]

Yang ZHONG updated TUSCANY-447:
-------------------------------

    Attachment: fidelity.xsd
                fidelity.xml

XML isn't correctly loaded, although attribute "AttributeWithSDOPropertySDOOppositePropertyType" model may have a problem since oppositeProperty doesn't exist within propertyType.

In addition, XMLHelper#save should have used XSDHelper#getLocalName/getNamespaceURI(spec 2.1) for Property "AttributeWithSDONameSDOName".

"fidelity.xsd" and "fidelity.xml" are attached for the following Test Case.

int sdotest::testFidelity()
{
   DataFactoryPtr mdg  = DataFactory::getDataFactory();

   XSDHelperPtr xsh = HelperProvider::getXSDHelper(mdg);
   xsh->defineFile("fidelity.xsd");
   XMLHelperPtr myXMLHelper = HelperProvider::getXMLHelper(mdg);
   XMLDocumentPtr myXMLDocument = myXMLHelper->loadFile("fidelity.xml");
   DataObjectPtr root = myXMLDocument->getRootDataObject();
   DataObjectPtr attributes = root->getDataObject("ComplexTypeAttributesTest");
   const char* p = attributes->getCString("AttributeWithSDOPropertyType");
   if(strcmp(p, "idvalue0"))
       return 0;
   p = attributes->getCString("AttributeWithSDOPropertySDOOppositePropertyType");
   if(strcmp(p, "idvalue0"))
       return 0;

   return 1;
}

> 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
>
>         Attachments: fidelity.xml, fidelity.xsd
>
>
> 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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org