HHH-15094 Handle both HTTP and HTTPS versions of DTDs in LocalXmlResourceResolver
This commit is contained in:
parent
8c263b3945
commit
19073672db
|
@ -62,9 +62,16 @@ public class LocalXmlResourceResolverTest {
|
||||||
@ParameterizedTest
|
@ParameterizedTest
|
||||||
@CsvSource({
|
@CsvSource({
|
||||||
"http://www.hibernate.org/dtd/hibernate-mapping,org/hibernate/hibernate-mapping-3.0.dtd",
|
"http://www.hibernate.org/dtd/hibernate-mapping,org/hibernate/hibernate-mapping-3.0.dtd",
|
||||||
|
"https://www.hibernate.org/dtd/hibernate-mapping,org/hibernate/hibernate-mapping-3.0.dtd",
|
||||||
|
|
||||||
"http://hibernate.sourceforge.net/hibernate-mapping,org/hibernate/hibernate-mapping-3.0.dtd",
|
"http://hibernate.sourceforge.net/hibernate-mapping,org/hibernate/hibernate-mapping-3.0.dtd",
|
||||||
|
"https://hibernate.sourceforge.net/hibernate-mapping,org/hibernate/hibernate-mapping-3.0.dtd",
|
||||||
|
|
||||||
"http://www.hibernate.org/dtd/hibernate-configuration,org/hibernate/hibernate-configuration-3.0.dtd",
|
"http://www.hibernate.org/dtd/hibernate-configuration,org/hibernate/hibernate-configuration-3.0.dtd",
|
||||||
"http://hibernate.sourceforge.net/hibernate-configuration,org/hibernate/hibernate-configuration-3.0.dtd"
|
"https://www.hibernate.org/dtd/hibernate-configuration,org/hibernate/hibernate-configuration-3.0.dtd",
|
||||||
|
|
||||||
|
"http://hibernate.sourceforge.net/hibernate-configuration,org/hibernate/hibernate-configuration-3.0.dtd",
|
||||||
|
"https://hibernate.sourceforge.net/hibernate-configuration,org/hibernate/hibernate-configuration-3.0.dtd"
|
||||||
})
|
})
|
||||||
void resolve_dtd_localResource(String id, String expectedLocalResource) throws XMLStreamException {
|
void resolve_dtd_localResource(String id, String expectedLocalResource) throws XMLStreamException {
|
||||||
// publicId
|
// publicId
|
||||||
|
|
Loading…
Reference in New Issue