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

Temporary fix for https://github.com/jetty/jetty.project/issues/11841 #115

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

Randgalt
Copy link
Member

jetty/jetty.project#11841 has an NPE when using 100-Continue. This hack is a workaround.

  • Create a new module that generates a JAR that will sort first in the classpath
  • Put a hacked version of Jetty's HttpSender in this module that has a fix
  • The Java classloader will load this version of the class first, thus working around the problem

This hack should be removed as soon as possible

@cla-bot cla-bot bot added the cla-signed label Jul 22, 2024
@Randgalt Randgalt requested a review from vagaerg July 22, 2024 07:05
@Randgalt Randgalt force-pushed the jordanz/temp-fix-for-jetty branch from 576f911 to e7afebb Compare July 22, 2024 07:14
@@ -0,0 +1,556 @@
//
Copy link
Contributor

Choose a reason for hiding this comment

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

This file seems to be from jetty/jetty.project#11891 with only formatting changes; should we add a comment about this?

Copy link
Member Author

Choose a reason for hiding this comment

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

@Randgalt Randgalt force-pushed the jordanz/temp-fix-for-jetty branch from e7afebb to 0eb32f9 Compare July 24, 2024 09:26
@Randgalt
Copy link
Member Author

Damn - we just got TestGenericRestRequests.testPutObject:206->doPutObject:273 » NullPointer Cannot invoke "org.eclipse.jetty.client.transport.HttpExchange.getRequest()" because "this.exchange" is null on this. I need to spend more time on this.

@Randgalt Randgalt marked this pull request as draft July 24, 2024 09:32
@Randgalt Randgalt force-pushed the jordanz/temp-fix-for-jetty branch 2 times, most recently from f44bd33 to 388bdff Compare July 24, 2024 10:11
jetty/jetty.project#11841 has an NPE
when using 100-Continue. This hack is a workaround.

- Create a new module that generates a JAR that will sort first in
the classpath
- Put a hacked version of Jetty's `HttpSender` in this module that
has a fix
- The Java classloader will load this version of the class first,
thus working around the problem

This hack should be removed as soon as possible
@Randgalt Randgalt force-pushed the jordanz/temp-fix-for-jetty branch from 388bdff to 7288166 Compare July 24, 2024 10:14
@mosiac1 mosiac1 mentioned this pull request Jul 24, 2024
@Randgalt Randgalt force-pushed the jordanz/temp-fix-for-jetty branch from 7288166 to 61e7f18 Compare July 24, 2024 11:23
@Randgalt Randgalt marked this pull request as ready for review July 24, 2024 11:24
@Randgalt Randgalt merged commit e2f2084 into main Jul 24, 2024
2 checks passed
@Randgalt Randgalt deleted the jordanz/temp-fix-for-jetty branch July 24, 2024 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants