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

Illegal cast of au.com.dius.pact.core.support.Auth to List<String> in latest 4.1.25 and 4.2.10 releases #1422

Open
jbwheatley opened this issue Aug 23, 2021 · 1 comment

Comments

@jbwheatley
Copy link

jbwheatley commented Aug 23, 2021

In these releases you can call the following function on ProviderInfo where you provide authentication as an instance of au.com.dius.pact.core.support.Auth:

open fun hasPactsFromPactBrokerWithSelectors(

with options: PactBrokerOptions, which then gets passed to PactBrokerClient and eventually calls

where it then tries to cast the authentication option to a List here

PactBrokerResult(name, href, pactBrokerUrl, options["authentication"] as List<String>, notices, pending,

This illegal cast causes a runtime exception.

See for example the failed pact4s build here: https://github.com/jbwheatley/pact4s/runs/3402523916?check_suite_focus=true

@uglyog
Copy link
Member

uglyog commented Sep 4, 2021

4.1.26 released

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