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
Regression in 1.11.0 for custom spec repos that require authentication #11010
Comments
I think this issue exists before, but there is also question on how auth is sent, because requests to gitlab with valid netrc config, didn't get 404 in comparison with logged in user. They were redirected to 200 login page. Though that may be company related proxy setup. However the source of topic issue is exception during YAML.load. PR was provided. |
Just in case, sorry for not being clear: this is clearly regression in our case - we've been using CocoaPods for years with the above configuration without a problem, i.e. it's not reproducible in 1.10.2, and downgrading to 1.10.2 is the only solution for us at the moment. |
@KostyaSha In any case, I checked our setup with your PR branch, and it looks like it solves the problem in our case. Thanks! |
@grigorye @KostyaSha same problem here, @KostyaSha works just fine 👍 tk you |
Fixed by #11221 👍🏻 Thanks to @KostyaSha! |
Report
What did you do?
git clone https://foo/bar/cocoapod-specs.git
by e.g. employing GitHub personal access tokenhttps://foo/bar/cocoapod-specs.git
in a private browser triggers authentication (in real life it's a web page redirecting to authentication). (We use something called "SAML single sign-on").bundle exec pod install
What did you expect to happen?
Both standard cdn and custom spec repos are cloned in ~/.cocoapods, pod install succeeds.
What happened instead?
Workaround
The workaround is to manually add the repo, like in
bundle exec pod add repo Bar https://foo/bar/cocoapod-specs.git
After that
bundle exec pod install
works as expected.Guess work
I guess that before 1.11 CocoaPods used only command-line git in the affected scenario, while in 1.11 it apparently triggers load of CocoaPods-version.yml via OpenURI, that fails due to lack of authentication. (Dumping
response.read
on line 87 shows the content of the page that redirects myself into authentication flow, like "Initiating SAML single sign-on" and etc.).CocoaPods Environment
Stack
Installation Source
Plugins
Podfile
Project that demonstrates the issue
Unfortunately I can not provide a project that demonstrates the issue the whole thing is related to corp network/vpn and etc.
A tailored version that uses foo/bar as url components for the custom spec repo is below:
https://github.com/grigorye/CocoaPods-1.11-Authentication-Issue
The text was updated successfully, but these errors were encountered: