Skip to content

Jetty 12.1 brotli linking problem #13499

@wendigo

Description

@wendigo

Jetty version(s)

12.1.0

Jetty Environment

Java version/vendor (use: java -version)

24.0.2

OS type/version

Linux

[root@presto-worker-1 /]# /lib64/libc.so.6
GNU C Library (GNU libc) stable release version 2.34.
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 11.5.0 20240719 (Red Hat 11.5.0-5).
libc ABIs: UNIQUE ABSOLUTE
For bug reporting instructions, please see:
<https://www.gnu.org/software/libc/bugs.html>.
Linux presto-worker-1 6.14.10-orbstack-00291-g1b252bd3edea #1 SMP Sat Jun  7 02:45:18 UTC 2025 aarch64 aarch64 aarch64 GNU/Linux

Description

Brotli linking exception prevents server startup (this could happen in cases like: dynamic library cannot be loaded from the location that is mounted with noexec or brotli is linked against newer libc). It should be possible to apply brotli and any other compression conditionally, if it's available. Right now since the static blocks are used to check for native library availability, it's not possible to correctly intercept linking exception without the usage of reflection.

How to reproduce?

Metadata

Metadata

Assignees

Labels

BugFor general bugs on Jetty side

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions