XSDs are not resolved from the jar when referenced via HTTPS
See original GitHub issueEnvironment
Java 8.
Liquibase Version: 3.8
Liquibase Integration & Version: <Pick one: CLI, maven, gradle, spring boot, servlet, etc.> Spring Boot
Database Vendor & Version: N/A
Operating System Type & Version: MacOS
Description
If a migration XML file refers to the liqubase XSD using https, the local jar packaged version is not used. That can cause issues if liquibase.org is down.
Steps To Reproduce
Use a liquibase XML with the following header without a network connection:
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog https://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext https://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
Actual Behavior
XSD resolution fails because https://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd cannot be read.
Expected/Desired Behavior
The locally packaged XSD is used.
Additional Context
The StandardNamespaceDetails
class could be updated to include https
as well as http
URLs.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:9
- Comments:41 (13 by maintainers)
Top Results From Across the Web
Referencing a XSD schema within jar file - Stack Overflow
I have two schema files one is imported from the other. When executing the code in Eclipse schemas are found but ...
Read more >Referencing xsds inside jars? - Oxygen XML Forum
We would prefer to store many of our xsds inside jars, but must be able to reference them in xs:import statements from other...
Read more >schemaLocation URI not resolved correctly using jar files - xsd ...
Running axis2 version 1.5.4 WSDLJava on w3c sparql protocol wsdl 2.0, got the following errors from woden: java org.apache.axis2.wsdl.
Read more >How to resolve XML errors when using Data Web Services to ...
xsd file that you downloaded in step 1. In the Key Type field, select the value Schema Location. In the Key field, specify...
Read more >Core Technologies - Spring
This part of the reference documentation covers all the technologies that ... https://www.springframework.org/schema/beans/spring-beans.xsd"> <bean id=".
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The problem is back today.
ISSUE RESOLVED: During a regular website maintenance, a change was introduced that incorrectly forced https for the xsd files we host for some Liquibase users, causing some users to experience 301 and 403 errors. This issue has been resolved and we apologize for any inconvenience.