question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

XSDs are not resolved from the jar when referenced via HTTPS

See original GitHub issue

Environment

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:closed
  • Created 3 years ago
  • Reactions:9
  • Comments:41 (13 by maintainers)

github_iconTop GitHub Comments

11reactions
Quiarkcommented, Jan 7, 2022

The problem is back today.

7reactions
molivasdatcommented, Jan 7, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found