Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update liquibase schema location to use https for services that cannot handle redirects when parsing schema #40

Closed
rudolficzek opened this issue Jan 7, 2022 · 3 comments

Comments

@rudolficzek
Copy link
Contributor

We encountering parse exception when trying to read scim-changelog.xml.
dbchangelog-3.9.xsd has been moved permanently but our config doesnt handle redirects

using the https:// URL instead of http:// would permanently solve the problem

below the stack trace:

Error during startup: java.lang.RuntimeException: Exception invoking method [listUnrunChangeSets] on object [liquibase.Liquibase@1b4ec4ef], using arguments [null,(),false]

Caused by: liquibase.exception.ChangeLogParseException: Error parsing line 2 column 35 of META-INF/scim-changelog.xml: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw '301 Moved Permanently'.

Caused by: org.xml.sax.SAXParseException; systemId: http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.9.xsd; lineNumber: 2; columnNumber: 35; s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw '301 Moved Permanently'.

@Captain-P-Goldfish
Copy link
Owner

merged pull request

@Captain-P-Goldfish
Copy link
Owner

I just noticed that the build does not work. I was a bit to hasty by merging it.

<databaseChangeLog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
                   xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
                                                    https://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.9.xsd">

adding it like this would resolve the build-issue. Would this work in your case?

Captain-P-Goldfish added a commit that referenced this issue Jan 7, 2022
relatesTo #40
@rudolficzek
Copy link
Contributor Author

thanks, this will do 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants