Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Jetty Upgrade (Jitpack) #24869

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

Draft
wants to merge 124 commits into
base: master
Choose a base branch
from

Conversation

ZacBlanco
Copy link
Contributor

@ZacBlanco ZacBlanco commented Apr 5, 2025

Upgrade to minimum version of java 17 and pull up jetty.

This branch uses jitpack to depend on an unpublished version of airlift

@prestodb-ci prestodb-ci added the from:IBM PR from IBM label Apr 5, 2025
@ZacBlanco ZacBlanco force-pushed the jetty-upgrade-jitpack branch 6 times, most recently from 84e6ee8 to 2834460 Compare April 9, 2025 22:53
@ZacBlanco ZacBlanco force-pushed the jetty-upgrade-jitpack branch 10 times, most recently from 6c228d9 to 122e4e2 Compare April 22, 2025 05:50
@ZacBlanco ZacBlanco force-pushed the jetty-upgrade-jitpack branch 7 times, most recently from 704a168 to 163512b Compare April 28, 2025 21:21
ZacBlanco and others added 19 commits April 28, 2025 14:43
This could be done in a single file, but by splitting this up it
will allows contributors and maintainers to incrementally re-
enable the modernizer on each module since it will cause lots of
code change. It will also introduce lots of opportunities for new
contributors to get involved with Presto.
- Spark requires certain versions of jersey, javax.rs.ws-api and
javax.serlet-api in order to run. This change ensures that we use
the correct library versions at runtime. The versions chosen
correspond to those used in Spark 2.4.4 which is the spark version
inside of Presto's spark-core dependency
This change expands the OVERRIDE_JDK_DIR environment
configuration to the tempto runner in addition to the existing
behavior for the presto coordinator and workers inside of the
product tests suite. run_tempto.sh was updated to detect the
overridden jdk volume when executing in order to make the
tests run on a compatible JDK since product tests compiles
to java 17 bytecode by default
This makes URI compliance checks in the REST catalog server
more lax during tests in order to comply with the request URIs
generated by the Iceberg rest catalog spec
- remove build-airlift to disable misbehaving profile from airbase
- mostly renames
- some exclusions for airlift deps in the original namespaces
- upgrade discovery-server
@ZacBlanco ZacBlanco force-pushed the jetty-upgrade-jitpack branch from 163512b to 083b450 Compare April 28, 2025 21:43
ZacBlanco and others added 9 commits April 28, 2025 16:17
In Java 17, when URI.create is called on a a String, the string
is URL encoded. This will cause encoded strings to be encoded
twice if the input is already URL encoded. For example %3B will
become %253B to encode the '%' character.

Newer Jetty servers reject requests encoded with %25xxx
as "AMBIGUOUS_PATH_PARAMETER".

However, if the String is not URL encoded, it will be encoded
as normal in URI.create. The ; character is actually allowed as a
delimiter  for path parameters. See RFC 3986 S3.3 which means
that when passing it directly to URI.create, the semicolon is
left in place and not encoded.

This presents a problem for the  function server API since we will
not be able to create URIs easily that are encoded. This change
updates the delimiter used to be `|` which is not in the reserved
URI delimiter list.
- remove airline from classpath by excluding it from com.teradata.tpcds:tpcds
- force presto-product-tests to shade airline by disabling
the generation of the dependency-reduced-pom
- change message() to body() in StatementClient to get correct error messages
@ZacBlanco ZacBlanco force-pushed the jetty-upgrade-jitpack branch from 083b450 to 924fe15 Compare April 28, 2025 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
from:IBM PR from IBM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants