Re: [jetty-users] Question about ALPN when embedding Jetty inside an OSGi bundle

2024-01-11 Thread Silvio Bierman via jetty-users
in Jetty not working in OSGi. (typically it's one of the following the ALPNProcessors, WebSocket, Precomputed Headers Impls, WebApp Configurations) Joakim Erdfelt / joa...@webtide.com On Fri, Dec 29, 2023 at 11:46 AM Silvio Bierman via jetty-users wrote: I have Jetty 12.0.5 embedded inside

[jetty-users] Question about ALPN when embedding Jetty inside an OSGi bundle

2023-12-29 Thread Silvio Bierman via jetty-users
I have Jetty 12.0.5 embedded inside an OSGi bundle with all dependencies embedded. Jetty starts normally and I can get it working with a HTTP listener. But when I add the code to add HTTPS support I get an error at startup: java.lang.IllegalStateException: No Server ALPNProcessors! The

Re: [jetty-users] Handle websocket upgrade request from inside Servlet#service (Jetty 12)

2023-10-19 Thread Silvio Bierman via jetty-users
/jetty-ee10/jetty-ee10-websocket/jetty-ee10-websocket-jetty-tests/src/test/java/org/eclipse/jetty/ee10/websocket/tests/ProgrammaticWebSocketUpgradeTest.java Joakim Erdfelt / joa...@webtide.com On Mon, Oct 16, 2023 at 10:01 AM Silvio Bierman via jetty-users wrote: Hallo all, I am

Re: [jetty-users] [eclipse/jetty.project] Lockup processing POST request body with Jetty 12.0.1 using http/2 (Issue #10513)

2023-09-14 Thread Silvio Bierman via jetty-users
Hello Joakim, You talk about the code in the alternative servlet TestServlet2 that treats the POST body as a ZIP. As posted the code however uses TestServlet1 that simply uses input.transferTo to read and discard all bytes of the POST body without making any assumptions about the content.

Re: [jetty-users] Jetty 12.0.x blocks server-to-server requests (and in case of 12.0.1 issues warning: WARN :oeju.Blocker:qtp686466458-43: Blocking.Callback incomplete)

2023-09-14 Thread Silvio Bierman via jetty-users
Hello Joakim, I am not 100% sure I understand your question but I hope this piece of code answers your question? class SocketCreator extends JettyWebSocketCreator {     def createWebSocket(request : JettyServerUpgradeRequest,response : JettyServerUpgradeResponse) =

Re: [jetty-users] Problem reading POST body with embedded Jetty 12.0.x

2023-09-14 Thread Silvio Bierman via jetty-users
:16 PM Silvio Bierman via jetty-users wrote: It appears that all handling of POST requests with ZIP-content as payload in our application is broken with Jetty 12 (I tried both 12.0.0 and 12.0.1). We use an embedded Jetty-12 with ee10 and http/2. Using Jetty 11 the code works as expected. We post

Re: [jetty-users] Problem reading POST body with embedded Jetty 12.0.x

2023-09-13 Thread Silvio Bierman via jetty-users
Hello Simone, I was thinking of that. I will create a small application that contains only this handler and reudce that to only absorbing the ZIP. If the issue still shows up I will file an issue and supply my code. If not, I will have to find out myself where we are messing things up.

Re: [jetty-users] Problem reading POST body with embedded Jetty 12.0.x

2023-09-13 Thread Silvio Bierman via jetty-users
11, 2023 at 2:16 PM Silvio Bierman via jetty-users wrote: It appears that all handling of POST requests with ZIP-content as payload in our application is broken with Jetty 12 (I tried both 12.0.0 and 12.0.1). We use an embedded Jetty-12 with ee10 and http/2. Using Jetty 11 the code works as expec

Re: [jetty-users] Problem reading POST body with embedded Jetty 12.0.x

2023-09-12 Thread Silvio Bierman via jetty-users
I have just tested the same POST requests with our application using http 1.1 and then everything works like before. So the issue only occurs when using http/2. Silvio On 12-09-2023 09:35, Silvio Bierman via jetty-users wrote: Hi Greg, Thanks. The particular parts of the application

Re: [jetty-users] Problem reading POST body with embedded Jetty 12.0.x

2023-09-12 Thread Silvio Bierman via jetty-users
to any buffering and/or blocking input streams. cheers On Tue, 12 Sept 2023 at 03:47, Simone Bordet via jetty-users wrote: Hi, On Mon, Sep 11, 2023 at 2:16 PM Silvio Bierman via jetty-users wrote: > > It appears that all handling of POST requests with ZIP-c

Re: [jetty-users] Problem reading POST body with embedded Jetty 12.0.x

2023-09-12 Thread Silvio Bierman via jetty-users
Hi Simone, I would have if an exception would be thrown. Unfortunately, that is not the case. The application simply blocks while reading the input from the post body. Kind regards, Silvio On 11-09-2023 19:46, Simone Bordet wrote: Hi, On Mon, Sep 11, 2023 at 2:16 PM Silvio Bierman via

[jetty-users] Problem reading POST body with embedded Jetty 12.0.x

2023-09-11 Thread Silvio Bierman via jetty-users
It appears that all handling of POST requests with ZIP-content as payload in our application is broken with Jetty 12 (I tried both 12.0.0 and 12.0.1). We use an embedded Jetty-12 with ee10 and http/2. Using Jetty 11 the code works as expected. We post a ZIP-file from the command line using

Re: [jetty-users] Jetty 12.0.1 build vs 12.0.0 build

2023-09-11 Thread Silvio Bierman via jetty-users
to handle JKD21 built jars when itself running in JDK20. Silvio On 04-09-2023 16:09, Silvio Bierman via jetty-users wrote: I can confirm that compiling works with jars that are built with. Cheers, Silvio On 04-09-2023 14:48, Simone Bordet wrote: Hi, On Mon, Sep 4, 2023 at 1:23 PM Silvio

Re: [jetty-users] Jetty 12.0.x blocks server-to-server requests (and in case of 12.0.1 issues warning: WARN :oeju.Blocker:qtp686466458-43: Blocking.Callback incomplete)

2023-09-05 Thread Silvio Bierman via jetty-users
. There is something fundamentally wrong with the callbacks, but which ones? from where? How does the request flow through Jetty? How are you using Jetty? (code helps) Joakim Erdfelt / joa...@webtide.com On Tue, Sep 5, 2023 at 8:47 AM Silvio Bierman via jetty-users wrote: Hi Simone, Well

Re: [jetty-users] Jetty 12.0.x blocks server-to-server requests (and in case of 12.0.1 issues warning: WARN :oeju.Blocker:qtp686466458-43: Blocking.Callback incomplete)

2023-09-05 Thread Silvio Bierman via jetty-users
. It is starting to clog my stderr-logs... Thank you, Silvio On 04-09-2023 18:12, Simone Bordet wrote: Silvio, On Mon, Sep 4, 2023 at 4:33 PM Silvio Bierman via jetty-users wrote: This happens on embedded Jetty (ee10 - http/2) HTTPS requests from the embedding application (standard Java

Re: [jetty-users] Jetty 12.0.1 build vs 12.0.0 build

2023-09-04 Thread Silvio Bierman via jetty-users
Sorry Simone, too trigger happy... Built with OpenJDK 20. On 04-09-2023 16:40, Simone Bordet wrote: Silvio, On Mon, Sep 4, 2023 at 4:09 PM Silvio Bierman wrote: I can confirm that compiling works with jars that are built with. Built with... ?

[jetty-users] Jetty 12.0.x blocks server-to-server requests (and in case of 12.0.1 issues warning: WARN :oeju.Blocker:qtp686466458-43: Blocking.Callback incomplete)

2023-09-04 Thread Silvio Bierman via jetty-users
This happens on embedded Jetty (ee10 - http/2) HTTPS requests from the embedding application (standard Java HttpServletRequest, URL that contains the global/external host name and the local port number) that is supposed to be handled by the current running process (and thus Jetty server). The

Re: [jetty-users] Jetty 12.0.1 build vs 12.0.0 build

2023-09-04 Thread Silvio Bierman via jetty-users
I can confirm that compiling works with jars that are built with. Cheers, Silvio On 04-09-2023 14:48, Simone Bordet wrote: Hi, On Mon, Sep 4, 2023 at 1:23 PM Silvio Bierman via jetty-users wrote: I have a strange issue that is probably not directly Jetty related but only occurs when I

Re: [jetty-users] Jetty 12.0.1 build vs 12.0.0 build

2023-09-04 Thread Silvio Bierman via jetty-users
! On 04-09-2023 14:48, Simone Bordet wrote: Hi, On Mon, Sep 4, 2023 at 1:23 PM Silvio Bierman via jetty-users wrote: I have a strange issue that is probably not directly Jetty related but only occurs when I compile against the 12.0.1 jars and not when using the 12.0.0 jars so I was hoping

Re: [jetty-users] Exception in Jetty 12.0.1

2023-09-04 Thread Silvio Bierman via jetty-users
String.java:4575) at java.base/java.lang.StringLatin1.charAt(StringLatin1.java:46) at java.base/java.lang.String.charAt(String.java:1535) --- -- Phobrain.com On 2023-09-04 04:45, Silvio Bierman via jetty-users wrote: I get a runtime exception when using Jetty 12.0.1 in embedded mode (http/2

Re: [jetty-users] Exception in Jetty 12.0.1

2023-09-04 Thread Silvio Bierman via jetty-users
) at java.base/java.lang.String.checkIndex(String.java:4575) at java.base/java.lang.StringLatin1.charAt(StringLatin1.java:46) at java.base/java.lang.String.charAt(String.java:1535) --- -- Phobrain.com On 2023-09-04 04:45, Silvio Bierman via jetty-users wrote: I get a runtime exception

[jetty-users] Exception in Jetty 12.0.1

2023-09-04 Thread Silvio Bierman via jetty-users
I get a runtime exception when using Jetty 12.0.1 in embedded mode (http/2). I have to add that i call SessionIdManager.setWorkerName(null) to get rid of the node id in the session ID (which has always worked for previous versions). 2023-09-04 13:39:27.421:WARN :oejs.Response:qtp105374791-42:

[jetty-users] Jetty 12.0.1 build vs 12.0.0 build

2023-09-04 Thread Silvio Bierman via jetty-users
I have a strange issue that is probably not directly Jetty related but only occurs when I compile against the 12.0.1 jars and not when using the 12.0.0 jars so I was hoping for some info. My Scala compiler crashes with an internal error when compiling against the 12.0.1 jars and not when

Re: [jetty-users] Eclipse Jetty 12.0.0 has been released!

2023-08-21 Thread Silvio Bierman via jetty-users
the Session.Listener? These cannot be used together for a particular message type (TEXT/BINARY). cheers, Lachlan On Fri, Aug 11, 2023 at 7:15 PM Silvio Bierman via jetty-users wrote: Thanks again, Reading the docs I think I managed to convert my WebSocket related code to the new

Re: [jetty-users] Jetty returns wrong result for HttpServletRequest.isRequestedSessionIdValid

2023-08-16 Thread Silvio Bierman via jetty-users
Sorry, that is for Jetty 12.0.0 On 16-08-2023 11:53, Silvio Bierman via jetty-users wrote: Jetty returns true for HttpServletRequest.isRequestedSessionIdValid(id) for IDs that do not exist. I filed issue https://github.com/eclipse/jetty.project/issues/10323 Cheers, Silvio

[jetty-users] Jetty returns wrong result for HttpServletRequest.isRequestedSessionIdValid

2023-08-16 Thread Silvio Bierman via jetty-users
Jetty returns true for HttpServletRequest.isRequestedSessionIdValid(id) for IDs that do not exist. I filed issue https://github.com/eclipse/jetty.project/issues/10323 Cheers, Silvio ___ jetty-users mailing list jetty-users@eclipse.org To

Re: [jetty-users] Jetty 12 return wrong Host header?

2023-08-13 Thread Silvio Bierman via jetty-users
Issue opened: https://github.com/eclipse/jetty.project/issues/10306 On 13-08-2023 01:31, Greg Wilkins via jetty-users wrote: Actually, I think Uwe's and Silvio's problems are similar but different. Silvio, you have no forwarded request customizer headers and a real

Re: [jetty-users] Jetty 12 return wrong Host header?

2023-08-12 Thread Silvio Bierman via jetty-users
headers as sent by the client  + Uri and headers as received by jetty  + The actual values you get from the various request methods Cheers On Fri, Aug 11, 2023, 21:34 Silvio Bierman via jetty-users wrote: Hello all, I have encountered what I think is a bug in Jetty 12 but I would

Re: [jetty-users] Jetty 12 return wrong Host header?

2023-08-12 Thread Silvio Bierman via jetty-users
the default port and not going direct you the server? Can you give us a bit more info:  + Uri and headers as sent by the client  + Uri and headers as received by jetty  + The actual values you get from the various request methods Cheers On Fri, Aug 11, 2023, 21:34 Silvio Bierman via jetty-users

[jetty-users] Jetty 12 return wrong Host header?

2023-08-11 Thread Silvio Bierman via jetty-users
Hello all, I have encountered what I think is a bug in Jetty 12 but I would like to check here if that is actually true. I use port forwarding to forward HTTP requests from port 443 to 8443. Requests arrive at the default port without an explicit port number in the URL so

Re: [jetty-users] Eclipse Jetty 12.0.0 has been released!

2023-08-11 Thread Silvio Bierman via jetty-users
Thanks again, Reading the docs I think I managed to convert my WebSocket related code to the new API. Instead of WebSocketListener/WebSocketAdapter I now use Session.Listener and there where some other minor changes. Everything compiles now. However, JettyWebSocketServerContainer.upgrade

Re: [jetty-users] Eclipse Jetty 12.0.0 has been released!

2023-08-10 Thread Silvio Bierman via jetty-users
Hi Joakim, If I change the dependencies to the version-independent WebSocket artifacts I can no longer find class WebSocketAdapter. The ee10 version seems to still have it. On 10-08-2023 15:41, Joakim Erdfelt wrote: Inline ... On Thu, Aug 10, 2023 at 8:16 AM Silvio Bierman wrote:

Re: [jetty-users] Eclipse Jetty 12.0.0 has been released!

2023-08-10 Thread Silvio Bierman via jetty-users
Thanks guys, During runtime the 11.x.x ALP en JSL4J jars where picked up. I replaced these with the 12.0.0 ones and now everything seems to work! Silvio On 10-08-2023 15:36, Joakim Erdfelt wrote: Inline ... On Thu, Aug 10, 2023 at 8:28 AM Silvio Bierman wrote: Another note: my

Re: [jetty-users] Eclipse Jetty 12.0.0 has been released!

2023-08-10 Thread Silvio Bierman via jetty-users
/ joa...@webtide.com On Thu, Aug 10, 2023 at 5:06 AM Silvio Bierman via jetty-users wrote: According to the docs there should be a org.eclipse.jettyjetty-servlet12.0.0 but I can not find it anywhere. Is that an error in the docs or is the artifact

Re: [jetty-users] Eclipse Jetty 12.0.0 has been released!

2023-08-10 Thread Silvio Bierman via jetty-users
on is found during compile time (after adding jetty-io). Any suggestions? Thanks, Silvio On 10-08-2023 13:22, Joakim Erdfelt wrote: There are 3 jetty-servlet replacements. org.eclipse.jetty.ee10:jetty-ee10-servlet - Jakarta EE10 - Servlet 6 (jakarta.servlet namespace)

Re: [jetty-users] Eclipse Jetty 12.0.0 has been released!

2023-08-10 Thread Silvio Bierman via jetty-users
(jakarta.servlet namespace) org.eclipse.jetty.ee8:jetty-ee8-servlet - Jakarta EE8 - Servlet 4 (javax.servlet namespace) Pick the ee# that best suits the needs of your project. Joakim Erdfelt / joa...@webtide.com On Thu, Aug 10, 2023 at 5:06 AM Silvio Bierman via jetty-users wrote: According

Re: [jetty-users] Eclipse Jetty 12.0.0 has been released!

2023-08-10 Thread Silvio Bierman via jetty-users
According to the docs there should be a org.eclipse.jettyjetty-servlet12.0.0 but I can not find it anywhere. Is that an error in the docs or is the artifact missing from the repo? Kind regards, Silvio On 07-08-2023 22:38, Joakim Erdfelt via jetty-users wrote: Hello! The Jetty team is

Re: [jetty-users] Custom bad message error page

2023-08-08 Thread Silvio Bierman via jetty-users
m Erdfelt / joa...@webtide.com On Mon, Aug 7, 2023 at 9:50 AM Silvio Bierman via jetty-users wrote: Hello Simone, Thank you for the reply. We do not want to change the compliance, the error flagging is correct and desired. It is just that some pote

Re: [jetty-users] Custom bad message error page

2023-08-08 Thread Silvio Bierman via jetty-users
Hi Simone, Sorry for the obfuscation. I meant the error message that is returned when a request comes in that does not contain an SNI (we call sslContextFactory.setSniRequired(true)). That message contains the "Caused by:" fragment I posted. But I was able to solve the issue with the info

Re: [jetty-users] Custom bad message error page

2023-08-07 Thread Silvio Bierman via jetty-users
08-2023 16:32, Simone Bordet wrote: Hi, On Mon, Aug 7, 2023 at 12:16 PM Silvio Bierman via jetty-users wrote: Hi, I run embedded Jetty 11.0.13. I have a single servlet instance and call ServletContextHandler#setErrorHandler(customHandler) during initialization. But whenever an invalid URL

[jetty-users] Custom bad message error page

2023-08-07 Thread Silvio Bierman via jetty-users
Hi, I run embedded Jetty 11.0.13. I have a single servlet instance and call ServletContextHandler#setErrorHandler(customHandler) during initialization. But whenever an invalid URL (like one containing empty segments) the handle method of the custom errorhandler is not called. Instead the