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

[TIMOB-20400] WWDR certificate can not be found in keychain other than system #7726

Closed
wants to merge 1 commit into from

Conversation

FokkeZB
Copy link
Contributor

@FokkeZB FokkeZB commented Feb 15, 2016

@@ -166,7 +166,7 @@ function detect(options, callback) {
if (!code) {
var tmp = [];
parseCerts(out, tmp);
results.certs.wwdr = tmp.length && tmp[0].invalid === false;
results.certs.wwdr = results.certs.wwdr || (tmp.length && tmp[0].invalid === false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

results.certs.wwdr will never be truthy because if it was, the parent function would return on line 163.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mmm, right... but since the tasks for all keychains run in parallel the same task for another keychain might have set it to true between the test in 163 and when the subprocess calls back 166. So that's why it needs to be checked at both places.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see your point. I'm cool with the fix, but this is the wrong repo. The fix should go in ioslib, not titanium_mobile.

I went ahead and made the fix: tidev/ioslib#30.

@cb1kenobi cb1kenobi closed this Feb 15, 2016
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

2 participants