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

Flyway fails to find resources in Felix 6.0.1 environment #2198

Closed
renat-sabitov opened this issue Nov 6, 2018 · 7 comments
Closed

Flyway fails to find resources in Felix 6.0.1 environment #2198

renat-sabitov opened this issue Nov 6, 2018 · 7 comments

Comments

@renat-sabitov
Copy link
Contributor

@renat-sabitov renat-sabitov commented Nov 6, 2018

Which version and edition of Flyway are you using?

5.2.1

Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)

Java API

Which database are you using (type & version)?

Postgres

Which operating system are you using?

Linux

What did you do?

Upgraded Felix to 6.0.1

What did you expect to see?

Flyway worked as before

What did you see instead?

Flyway fails to find resources

The reason is felix changes resource URL schemas, they look now like this:

"bundle://e3a74e5a-af1f-46f0-bb53-bc5fee1b4a57_145.0:1/db/connect-migrations"

The bundle id is 145 in the example above.

@renat-sabitov
Copy link
Contributor Author

@renat-sabitov renat-sabitov commented Nov 6, 2018

see pull request #2199

@axelfontaine axelfontaine added this to the Flyway 5.2.2 milestone Nov 6, 2018
axelfontaine added a commit that referenced this issue Nov 19, 2018
axelfontaine added a commit to flyway/flywaydb.org that referenced this issue Nov 19, 2018
@axelfontaine
Copy link
Contributor

@axelfontaine axelfontaine commented Nov 19, 2018

Fixed by adjusting the bundle URL parser to correctly extract the bundle ID from the host. Please try and confirm the flyway-5.2.x branch it is now working for you.

@renat-sabitov
Copy link
Contributor Author

@renat-sabitov renat-sabitov commented Feb 11, 2019

@axelfontaine , your solution didn't work, try on this one:
5320885d-5e87-4a47-82eb-7cdac36e6978_120.0

I'm not going to provide a unit test, however I would encourage you to have one. Your regexps are not working as they are.

@axelfontaine axelfontaine reopened this Feb 11, 2019
axelfontaine pushed a commit to flyway/flywaydb.org that referenced this issue Feb 11, 2019
@axelfontaine
Copy link
Contributor

@axelfontaine axelfontaine commented Feb 11, 2019

@renat-sabitov Thanks for letting me know. Fixed.

@renat-sabitov
Copy link
Contributor Author

@renat-sabitov renat-sabitov commented Feb 12, 2019

@axelfontaine any chance releasing a new version?

@axelfontaine
Copy link
Contributor

@axelfontaine axelfontaine commented Feb 12, 2019

@renat-sabitov It's already out as part of the 6.0.0-beta preview.

@renat-sabitov
Copy link
Contributor Author

@renat-sabitov renat-sabitov commented Apr 17, 2019

@axelfontaine is there any chance of releasing it in 5.2.5?

dohrayme pushed a commit to dohrayme/flyway that referenced this issue Feb 3, 2020
dohrayme pushed a commit to dohrayme/flyway that referenced this issue Feb 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants