You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Richard Mah (JIRA)" <de...@tuscany.apache.org> on 2009/02/12 21:24:59 UTC
[jira] Created: (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"
Tuscany Model loses AnyElements and AnyAttributes in the same namespace as the core sca namespace "http://www.osoa.org/xmlns/sca/1.0"
-------------------------------------------------------------------------------------------------------------------------------------
Key: TUSCANY-2847
URL: https://issues.apache.org/jira/browse/TUSCANY-2847
Project: Tuscany
Issue Type: Bug
Components: Java SCA Assembly Model
Affects Versions: Java-SCA-1.3
Reporter: Richard Mah
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>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
Re: [jira] Created: (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"
Posted by Simon Laws <si...@googlemail.com>.
On Thu, Feb 12, 2009 at 8:54 PM, Luciano Resende <lu...@gmail.com>wrote:
> On Thu, Feb 12, 2009 at 12:47 PM, Simon Laws <si...@googlemail.com>
> wrote:
> >
> >
> > On Thu, Feb 12, 2009 at 8:24 PM, Richard Mah (JIRA) <
> dev@tuscany.apache.org>
> > wrote:
> >>
> >> Tuscany Model loses AnyElements and AnyAttributes in the same namespace
> as
> >> the core sca namespace "http://www.osoa.org/xmlns/sca/1.0"
> >>
> >>
> -------------------------------------------------------------------------------------------------------------------------------------
> >>
> >> Key: TUSCANY-2847
> >> URL: https://issues.apache.org/jira/browse/TUSCANY-2847
> >> Project: Tuscany
> >> Issue Type: Bug
> >> Components: Java SCA Assembly Model
> >> Affects Versions: Java-SCA-1.3
> >> Reporter: Richard Mah
> >>
> >>
> >> 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>
> >>
> >> --
> >> This message is automatically generated by JIRA.
> >> -
> >> You can reply to this email to add a comment to the issue online.
> >>
> >
> > Hi Richard
> >
> > When loading the composite with this in are you getting a warning saying
> > that binding.new can't be processed? The osoa defined schema
> extensibility
> > relies on "any" elements to be in a namespace other that the osoa
> namespace.
> > So I'd expect that the runtime treats this as a real binding but warns
> that
> > it can find a binding of this name.
> >
>
> Our runtime is processing "extension elements" of the same sca namespace.
> What we are NOT currently supporting is "extensions attributes" of the
> same sca namespace.
>
> > Regards
> >
> > Simon
> >
>
>
>
> --
> Luciano Resende
> Apache Tuscany, Apache PhotArk
> http://people.apache.org/~lresende <http://people.apache.org/%7Elresende>
> http://lresende.blogspot.com/
>
You know I didn't notice unknownAttribute="value". But you're right the XSD
says extension attributes can appear in any namespace (while elements that
don't extend sca:binding are only tolerated in ##other).
Simon
Re: [jira] Created: (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"
Posted by Luciano Resende <lu...@gmail.com>.
On Thu, Feb 12, 2009 at 12:47 PM, Simon Laws <si...@googlemail.com> wrote:
>
>
> On Thu, Feb 12, 2009 at 8:24 PM, Richard Mah (JIRA) <de...@tuscany.apache.org>
> wrote:
>>
>> Tuscany Model loses AnyElements and AnyAttributes in the same namespace as
>> the core sca namespace "http://www.osoa.org/xmlns/sca/1.0"
>>
>> -------------------------------------------------------------------------------------------------------------------------------------
>>
>> Key: TUSCANY-2847
>> URL: https://issues.apache.org/jira/browse/TUSCANY-2847
>> Project: Tuscany
>> Issue Type: Bug
>> Components: Java SCA Assembly Model
>> Affects Versions: Java-SCA-1.3
>> Reporter: Richard Mah
>>
>>
>> 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>
>>
>> --
>> This message is automatically generated by JIRA.
>> -
>> You can reply to this email to add a comment to the issue online.
>>
>
> Hi Richard
>
> When loading the composite with this in are you getting a warning saying
> that binding.new can't be processed? The osoa defined schema extensibility
> relies on "any" elements to be in a namespace other that the osoa namespace.
> So I'd expect that the runtime treats this as a real binding but warns that
> it can find a binding of this name.
>
Our runtime is processing "extension elements" of the same sca namespace.
What we are NOT currently supporting is "extensions attributes" of the
same sca namespace.
> Regards
>
> Simon
>
--
Luciano Resende
Apache Tuscany, Apache PhotArk
http://people.apache.org/~lresende
http://lresende.blogspot.com/
Re: [jira] Created: (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"
Posted by Simon Laws <si...@googlemail.com>.
On Thu, Feb 12, 2009 at 8:24 PM, Richard Mah (JIRA)
<de...@tuscany.apache.org>wrote:
> Tuscany Model loses AnyElements and AnyAttributes in the same namespace as
> the core sca namespace "http://www.osoa.org/xmlns/sca/1.0"
>
> -------------------------------------------------------------------------------------------------------------------------------------
>
> Key: TUSCANY-2847
> URL: https://issues.apache.org/jira/browse/TUSCANY-2847
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Assembly Model
> Affects Versions: Java-SCA-1.3
> Reporter: Richard Mah
>
>
> 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>
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>
Hi Richard
When loading the composite with this in are you getting a warning saying
that binding.new can't be processed? The osoa defined schema extensibility
relies on "any" elements to be in a namespace other that the osoa namespace.
So I'd expect that the runtime treats this as a real binding but warns that
it can find a binding of this name.
Regards
Simon
[jira] Commented: (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"
Posted by "Luciano Resende (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12673049#action_12673049 ]
Luciano Resende commented on TUSCANY-2847:
------------------------------------------
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.
> Tuscany Model loses AnyElements and AnyAttributes in the same namespace as the core sca namespace "http://www.osoa.org/xmlns/sca/1.0"
> -------------------------------------------------------------------------------------------------------------------------------------
>
> Key: TUSCANY-2847
> URL: https://issues.apache.org/jira/browse/TUSCANY-2847
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Assembly Model
> Affects Versions: Java-SCA-1.3
> Reporter: Richard Mah
>
> 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>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.