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

[JENKINS-73126] Upgrade Winstone from Jetty 10.x to 12.x (EE 8) #383

Merged
merged 2 commits into from
Aug 12, 2024

Conversation

basil
Copy link
Member

@basil basil commented May 8, 2024

Replace dependencies with EE 8 versions in pom.xml and update all relevant imports.

Testing done

Full PCT/ATH

@basil basil force-pushed the prototype branch 5 times, most recently from 31a91d5 to a07086b Compare May 15, 2024 18:18
@basil basil changed the title Incremental build for testing Jetty 12 EE 8 May 16, 2024
@basil basil changed the title Jetty 12 EE 8 Upgrade Jetty from 10.0.20 to 12.0.9 May 16, 2024
@basil basil changed the title Upgrade Jetty from 10.0.20 to 12.0.9 Upgrade Jetty from 10.0.20 to 12.0.10 Jun 3, 2024
@basil basil force-pushed the prototype branch 3 times, most recently from 01a7059 to e8a0d5a Compare June 14, 2024 14:57
@basil basil force-pushed the prototype branch 2 times, most recently from 1a58a64 to 2ac4f2e Compare June 25, 2024 23:05
@olamy olamy mentioned this pull request Jun 26, 2024
@basil basil force-pushed the prototype branch 2 times, most recently from c86a891 to fc72a87 Compare June 26, 2024 22:56
@basil basil changed the title Upgrade Jetty from 10.0.20 to 12.0.10 [JENKINS-73126] Upgrade Winstone from Jetty 10.x to 12.x (EE 8) Jun 26, 2024
@basil basil marked this pull request as ready for review June 26, 2024 22:58
@basil basil force-pushed the prototype branch 4 times, most recently from 8f9940a to 760fa67 Compare July 2, 2024 20:35
@basil basil force-pushed the prototype branch 2 times, most recently from abde36f to 4ac932a Compare July 15, 2024 20:01
@@ -55,7 +52,6 @@ public class HostConfiguration {
private Map<String, String> args;
private Map<String, WebAppContext> webapps;
private ClassLoader commonLibCL;
private MimeTypes mimeTypes = new MimeTypes();
Copy link
Member Author

Choose a reason for hiding this comment

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

Note that we are no longer replacing the default MIME types, but appending to them. As a result, we have deleted any MIME mappings that are already present in upstream Jetty and added a test to ensure that we are only adding to the existing MIME types rather than attempting to replace them.

public ErrorCollector errors = new ErrorCollector();

@Test
public void mimeTypes() throws IOException {
Copy link
Member Author

Choose a reason for hiding this comment

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

This test ensures that we are only ever adding to the Jetty default MIME types, never replacing them. When upstream Jetty has a MIME type, we want to use it whenever possible. This is not only so that we have less code to maintain, but also so that we avoid bugs like JENKINS-73381.

Copy link
Member

@alecharp alecharp left a comment

Choose a reason for hiding this comment

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

Looks great.

Copy link

@Kevin-CB Kevin-CB left a comment

Choose a reason for hiding this comment

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

Security-wise, LGTM

@basil basil merged commit 400eeee into master Aug 12, 2024
14 checks passed
@basil basil deleted the prototype branch August 12, 2024 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants