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

DAT-11407: replace backslashes in NotFoundResource URI #3322

Merged
merged 95 commits into from
Sep 29, 2022
Merged

Conversation

StevenMassaro
Copy link
Contributor

Impact

  • Bug fix (non-breaking change which fixes expected existing functionality)
  • Enhancement/New feature (adds functionality without impacting existing logic)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

Replace an illegal character when creating the not found resource.

Things to be aware of

Things to worry about

Additional Context

- Created ResourceAccessor.find() that returns a single file
- Moved openStream warn/error logic in to ResourceAccessor.find
- Use new openOutputStream logic in ChangelogRewriter
- Replaced URIs with String descriptions in InputStreamList
Added isWritable() and exists() methods to Resource
StevenMassaro and others added 19 commits September 20, 2022 11:49
Use the proper message for files not found when running execute-sql command.
# Conflicts:
#	liquibase-core/src/main/java/liquibase/resource/DirectoryPathHandler.java
#	liquibase-core/src/main/java/liquibase/resource/ZipPathHandler.java
#	liquibase-core/src/test/groovy/liquibase/resource/ZipPathHandlerTest.groovy
# Conflicts:
#	liquibase-core/src/main/java/liquibase/resource/DirectoryPathHandler.java
#	liquibase-core/src/main/java/liquibase/resource/PathHandlerFactory.java
#	liquibase-core/src/test/groovy/liquibase/resource/PathHandlerFactoryTest.groovy
# Conflicts:
#	liquibase-core/src/test/groovy/liquibase/resource/ClassLoaderResourceAccessorTest.groovy
#	liquibase-core/src/test/groovy/liquibase/resource/FileSystemResourceAccessorTest.groovy
# Conflicts:
#	liquibase-core/src/main/java/liquibase/resource/DirectoryPathHandler.java
#	liquibase-core/src/main/java/liquibase/resource/ZipPathHandler.java
#	liquibase-core/src/test/groovy/liquibase/resource/ZipPathHandlerTest.groovy
# Conflicts:
#	liquibase-core/src/main/java/liquibase/resource/DirectoryPathHandler.java
…geLog Mojo (#3302)

* Check for resources directory to exist before adding it to resource accessor

DAT-11714

* reapply DAT-11591 fix

Co-authored-by: Steven Massaro <steven.massaro.web@gmail.com>
Update the command test framework to allow copying files to the current working directory.
# Conflicts:
#	liquibase-integration-tests/src/test/java/liquibase/dbtest/AbstractIntegrationTest.java
@nvoxland nvoxland changed the base branch from DAT-10431 to add-resource September 29, 2022 14:46
@github-actions
Copy link

Unit Test Results

  4 668 files  ±0    4 668 suites  ±0   34m 51s ⏱️ - 2m 57s
  4 627 tests ±0    4 409 ✔️ ±0     218 💤 ±0  0 ±0 
54 528 runs  ±0  49 485 ✔️ ±0  5 043 💤 ±0  0 ±0 

Results for commit 9386cfc. ± Comparison against base commit 9317d23.

Base automatically changed from add-resource to master September 29, 2022 14:57
# Conflicts:
#	liquibase-core/src/main/java/liquibase/integration/commandline/Main.java
#	liquibase-core/src/main/java/liquibase/resource/ResourceAccessor.java
@StevenMassaro StevenMassaro merged commit b22e3d0 into master Sep 29, 2022
@StevenMassaro StevenMassaro deleted the DAT-11407 branch September 29, 2022 15:23
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

Successfully merging this pull request may close these issues.

None yet

4 participants