You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Maxim Solodovnik (Jira)" <ji...@apache.org> on 2026/09/03 13:58:00 UTC
[jira] [Resolved] (OPENJPA-2976) version 3.1 persistence.xml validated against 3.0 XSD
[ https://issues.apache.org/jira/browse/OPENJPA-2976?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maxim Solodovnik resolved OPENJPA-2976.
---------------------------------------
Resolution: Fixed
> 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
> Assignee: Maxim Solodovnik
> Priority: Major
> 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)