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

Parsing an array that was serialized using multipleReferencesAllowed=true fails #209

Closed
reckart opened this issue Sep 10, 2021 · 0 comments
Assignees
Labels
Milestone

Comments

@reckart
Copy link
Member

reckart commented Sep 10, 2021

Describe the bug
Parsing an array that was serialized using multipleReferencesAllowed=true fails with.

To Reproduce
Try loading these:

<?xml version="1.0" encoding="UTF-8"?>
<typeSystemDescription xmlns="http://uima.apache.org/resourceSpecifier">
    <types>
        <typeDescription>
            <name>test.type</name>
            <description/>
            <supertypeName>uima.tcas.Annotation</supertypeName>
            <features>
                <featureDescription>
                    <name>target</name>
                    <description/>
                    <rangeTypeName>uima.cas.StringArray</rangeTypeName>
                    <elementType>uima.cas.String</elementType>
                    <multipleReferencesAllowed>true</multipleReferencesAllowed>
                </featureDescription>
            </features>
        </typeDescription>
    </types>
</typeSystemDescription>
<?xml version="1.0" ?>
<xmi:XMI xmi:version="2.0" xmlns:cas="http:///uima/cas.ecore"
		 xmlns:tcas="http:///uima/tcas.ecore"
		 xmlns:xmi="http://www.omg.org/XMI"
		 xmlns:test="http:///test.ecore">

	<cas:NULL xmi:id="0"/>

    <tcas:DocumentAnnotation xmi:id="1" sofa="1" begin="0" end="47" language="x-unspecified"/>

    <test:type xmi:id="2" sofa="1" target="3"/>

	<cas:StringArray xmi:id="3">
		<elements>LNC</elements>
		<elements>MTH</elements>
		<elements>SNOMEDCT_US</elements>
	</cas:StringArray>

	<cas:Sofa xmi:id="1" sofaNum="1" sofaID="_InitialView" mimeType="text/plain"
              sofaString="Joe waited for the train . The train was late ."/>
	<cas:View members="1 2" sofa="1"/>
</xmi:XMI>

Expected behavior
Should just work.

Please complete the following information:

  • Version: 0.6.0-SNAPSHOT
@reckart reckart added this to the 0.6.0 milestone Sep 10, 2021
@reckart reckart self-assigned this Sep 10, 2021
reckart added a commit that referenced this issue Sep 10, 2021
…llowed=true fails

- Fixed problem by checking the multipleReferencesAllowed feature during deserialization
- Added test
reckart added a commit that referenced this issue Sep 10, 2021
…as-serialized-using-multipleReferencesAllowed-true-fails

#209 - Parsing an array that was serialized using multipleReferencesAllowed=true fails
@reckart reckart closed this as completed Sep 10, 2021
reckart added a commit that referenced this issue Sep 10, 2021
* main:
  #209 - Parsing an array that was serialized using multipleReferencesAllowed=true fails
reckart added a commit that referenced this issue Sep 20, 2021
…llowed=true fails

- Fixed problem by checking the multipleReferencesAllowed feature during deserialization
- Added test
reckart added a commit that referenced this issue Sep 20, 2021
* main:
  #209 - Parsing an array that was serialized using multipleReferencesAllowed=true fails
reckart added a commit that referenced this issue Sep 27, 2021
…ithub.com/dkpro/dkpro-cassis into feature/168-Experimental-JSON-CAS-support

* 'feature/168-Experimental-JSON-CAS-support' of https://github.com/dkpro/dkpro-cassis:
  No issue. Formatting.
  #215 - Ability to exclude types from cas_to_comparable_text
  #212 - Allow loading/saving XMI/typesystems from/to Path
  #211 - Serializing an FSArray without any elements breaks
  #212 - Allow loading/saving XMI/typesystems from/to Path
  #168 - Experimental JSON CAS support
  #168 - Experimental JSON CAS support
  #168 - Experimental JSON CAS support
  #209 - Parsing an array that was serialized using multipleReferencesAllowed=true fails
  - Do not execute performance "tests" when running make test - Update JSON reference data with new data from UIMA Java SDK - including CAS examples using emojis and other Unicode characters - Enabled character offset conversion on import/export in JSON (de)serializer
  #209 - Parsing an array that was serialized using multipleReferencesAllowed=true fails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant