Maxim Solodovnik created OPENJPA-2976:
-----------------------------------------

             Summary: version 3.1 persistence.xml validated against 3.0 XSD
                 Key: OPENJPA-2976
                 URL: https://issues.apache.org/jira/browse/OPENJPA-2976
             Project: OpenJPA
          Issue Type: Sub-task
          Components: jpa
    Affects Versions: 4.2.0
            Reporter: Maxim Solodovnik
             Fix For: 4.2.0


Discussion thread: 
https://github.com/apache/openjpa/pull/144#discussion_r3683004555


**(medium)** Documents declaring `version="3.1"` are routed to 
`persistence_3_0.xsd.rsrc`, but that schema declares `version` as `fixed="3.0" 
use="required"`, so such documents always fail XSD validation - and with the 
new SAX-rethrow logic at line 570 this now aborts unit discovery instead of 
being skipped. Is the branch intentional, and should not it validate against a 
schema that accepts "3.1"? (Note the copy-pasted `PERSISTENCE_XSD_3_0` in the 
3.1 condition.)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to