-
Notifications
You must be signed in to change notification settings - Fork 273
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
google-oauth-client-jetty incompatible with Jetty 9.4+ #397
Comments
using of LocalServerReceiver.Builder class instead of "plain" new LocalServerReceiver object could be like workaround
|
@lagivan : Sorry for breaking things 😞 |
I use Builder class. |
I have the same error. |
Workaround(for some people) I want to jetty of eclipse version. "com.google.oauth-client" % "google-oauth-client-jetty" % "1.30.3" exclude ("org.mortbay.jetty", "servlet-api"), google-oauth-client-jettyとjetty-serverのバージョンコンフリクトを解決する - ncaq |
One more vote for this issue to be resolved. I have an application that loads 9.4 Jetty server version, which is incompatible with 8.2. Can this library be updated to work with 9.4? |
Same problem! |
I downloaded the code, fixed it and installed it in a local Maven repository. I don't know how to distribute it or get the maintainers to take my change, though. If anybody knows what to do, I'm happy to send the change. |
@ericraskin take a look at the contributing guide: https://github.com/googleapis/google-oauth-java-client/blob/master/CONTRIBUTING.md |
@YuanWenqing I have attempted to contribute the change, but being new I probably did not do it correctly. The original comment was "I'm not sure this is an upgrade we want." with no further explanation. I have tried again. We'll see if they accept it. |
Remove Jetty v8.2 and replace with com.sun.net.httpserver.HttpServer. Jetty has had breaking changes since 8.2 (specifically with version 9.4). This causes with conflicts with newer code using later versions of Jetty. Removing dependency on Jetty resolves this issue. Fixes googleapis#397.
We are considering the possibility of providing a separate jetty9 compatible artifact, however, this is a may introduce a dependency management issue for us across our library ecosystem. Also note that the jetty extensions are not an integral part of the oauth library and are relatively simple adapters/examples of implementing callback handlers for the oauth flow. |
* feat: Replace Jetty with HttpServer. Remove Jetty v8.2 and replace with com.sun.net.httpserver.HttpServer. Jetty has had breaking changes since 8.2 (specifically with version 9.4). This causes with conflicts with newer code using later versions of Jetty. Removing dependency on Jetty resolves this issue. Fixes #397. * feat: Rewrite findOpenSocket using try with resources * fix: Remove commented out Jetty 9.4 code since we are using HttpServer now. * fix: Enforce Google coding style.
I downgraded to 1.22.0, it works for me
|
Google has fixed the issue in latest jars.
|
This worked for me with JDK 16. |
Environment details
Steps to reproduce
Code example
Stack trace
Any additional information below
The issue appeared after upgrading from 1.30.3 to 1.30.4. Most likely related to the upgrade of Jetty to 8.2 in the latest version.
The exception appears when credentials are not saved yet - user has to grant permissions via browser.
The text was updated successfully, but these errors were encountered: