Skip to content

Conversation

@zpencer
Copy link
Contributor

@zpencer zpencer commented Nov 7, 2017

This is a workaround of the security restrictions, but effectively turns off proxy support in GAE+JDK7.

I can't seem to get AccessController to work in GAE, the checkPermission API fails:

Can not use checkPermission:
Caused by: java.lang.SecurityException: AccessController.checkPermission is unsupported.

And doPriviledged also fails:

  Caused by: io.grpc.StatusRuntimeException: INTERNAL: Thrown from handleResolvedAddresses(): java.lang.NoClassDefFoundError: java.net.ProxySelector is a restricted class. Please see the Google App Engine developer's guide for more details.

Let's use the usual technique of checking for the IS_RESTRICTED_APPENGINE flag.

Fixes #3676

@zpencer zpencer requested a review from ejona86 November 7, 2017 15:34
@ejona86 ejona86 added the TODO:backport PR needs to be backported. Removed after backport complete label Nov 7, 2017
@zpencer zpencer merged commit a730015 into grpc:master Nov 7, 2017
@zpencer zpencer deleted the gae-jdk7-no-proxydetector branch November 7, 2017 17:51
@zpencer
Copy link
Contributor Author

zpencer commented Nov 7, 2017

I do not see the proxy detector changes in 1.7.x so it's only 1.8.x that needs the backport.

@ejona86 ejona86 removed the TODO:backport PR needs to be backported. Removed after backport complete label Nov 9, 2017
zpencer added a commit to zpencer/grpc-java that referenced this pull request Nov 10, 2017
@carl-mastrangelo carl-mastrangelo added this to the 1.9 milestone Nov 30, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants