Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Castor can't unmarshall FilterComponent #33

Open
darmbrust opened this issue Oct 27, 2013 · 0 comments
Open

Castor can't unmarshall FilterComponent #33

darmbrust opened this issue Oct 27, 2013 · 0 comments

Comments

@darmbrust
Copy link
Contributor

Castor has some sort of bug which causes it to be confused by the structure of FilterComponent.

This XML, which is schema valid (and is in fact, generated by castor) will cause castor to choke upon unmarshall:

<?xml version="1.0" encoding="UTF-8"?>
<ChangeSet xmlns="http://www.omg.org/spec/CTS2/1.1/Updates" xmlns:upd="http://www.omg.org/spec/CTS2/1.1/Updates"
    xmlns:core="http://www.omg.org/spec/CTS2/1.1/Core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:vsd="http://www.omg.org/spec/CTS2/1.1/ValueSetDefinition"
    xsi:schemaLocation="http://www.omg.org/spec/CTS2/1.1/Updates http://informatics.mayo.edu/cts2/spec/CTS2/1.1/updates/Updates.xsd"
    changeSetURI="urn:uuid:abaef30c-0a5d-4bf2-9d75-e524f5e01473" creationDate="2013-10-04T15:14:41.254-05:00">

    <member entryOrder="13">
        <upd:valueSetDefinition xmlns="http://www.omg.org/spec/CTS2/1.1/ValueSetDefinition" about="tag:informatics.mayo.edu,2013-08-03:vs/ValueSet7-2.0"
            formalName="ValueSet7-2.0">
            <core:changeDescription changeType="IMPORT" containingChangeSet="urn:uuid:abaef30c-0a5d-4bf2-9d75-e524f5e01473" changeDate="2013-10-04T15:14:41.254-05:00"/>
            <definedValueSet uri="tag:informatics.mayo.edu,2013-08-03:vs/ValueSet7">ValueSet7</definedValueSet>
            <entry operator="UNION" entryOrder="1">
                <vsd:propertyQuery>
                    <vsd:codeSystem uri="tag:informatics.mayo.edu,2013-08-03:UnbelievableTestData">UnbelievableTestData</vsd:codeSystem>
                    <vsd:filter>
                        <core:attributeReference>resourceSynopsis</core:attributeReference>
                        <core:matchAlgorithm>startsWith</core:matchAlgorithm>
                        <core:matchValue>some</core:matchValue>
                    </vsd:filter>
                </vsd:propertyQuery>
            </entry>
        </upd:valueSetDefinition>
    </member>

</ChangeSet>

A workaround for this problem has been added to the cts2-model.pom file - which simply modifies the generated FilterComponentDescriptor to disable the validation in castor that is currently broken.

darmbrust added a commit that referenced this issue Jan 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant