I've done a draft PR to potentially fix this:
https://github.com/eclipse/jetty.project/pull/10479
But we need to actually write a test to confirm the diagnosis first.

On Tue, 5 Sept 2023 at 17:44, Jan Bartel via jetty-users <
jetty-users@eclipse.org> wrote:

> Silvio,
>
>
> This looks like a url with the sessionid encoded in the url, but it is
> incomplete. It looks like the url just contains JSESSIONID, whereas it
> should be JSESSIONID=<session id>.
>
> I don't think we changed the way we parse the sessionid from the url since
> at least jetty 10, but I could be wrong, I don't have my computer in front
> of me.
>
> Will look into it.
>
>
> Jan
>
> On Mon, 4 Sept 2023, 22:10 Silvio Bierman via jetty-users, <
> jetty-users@eclipse.org> wrote:
>
>> I do not know exactly which request causes the issue since I have not yet
>> debugged that. There may be a UUID in the parameter list but these have
>> length 36. The issue only occurs in 12.0.1 so I doubt the URL-paramaters
>> are encoded incorrectly. We never use application character data in URL
>> parameters so it is unlikely that any special characters are in there.
>>
>>
>> On 04-09-2023 13:58, Bill Ross via jetty-users wrote:
>>
>> I wonder if this could be a string encoding issue? Can you think of any
>> strings/params that are this long?
>>
>> 1234567890123456789012345678901234
>>
>>
>> 2023-09-04 13:39:27.421:WARN :oejs.Response:qtp105374791-42: writeError:
>> status=500, message=java.lang.StringIndexOutOfBoundsException: Index 34 out
>> of bounds for length 34,
>> response=org.eclipse.jetty.ee10.servlet.ServletContextResponse@77c7bf1
>> java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for
>> length 34
>>     at
>> java.base/jdk.internal.util.Preconditions$1.apply(Preconditions.java:55)
>>     at
>> java.base/jdk.internal.util.Preconditions$1.apply(Preconditions.java:52)
>>     at
>> java.base/jdk.internal.util.Preconditions$4.apply(Preconditions.java:213)
>>     at
>> java.base/jdk.internal.util.Preconditions$4.apply(Preconditions.java:210)
>>     at
>> java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:98)
>>     at
>> java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:106)
>>     at
>> java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:302)
>>     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 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: writeError:
>> status=500, message=java.lang.StringIndexOutOfBoundsException: Index 34 out
>> of bounds for length 34,
>> response=org.eclipse.jetty.ee10.servlet.ServletContextResponse@77c7bf1
>> java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for
>> length 34
>>     at
>> java.base/jdk.internal.util.Preconditions$1.apply(Preconditions.java:55)
>>     at
>> java.base/jdk.internal.util.Preconditions$1.apply(Preconditions.java:52)
>>     at
>> java.base/jdk.internal.util.Preconditions$4.apply(Preconditions.java:213)
>>     at
>> java.base/jdk.internal.util.Preconditions$4.apply(Preconditions.java:210)
>>     at
>> java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:98)
>>     at
>> java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:106)
>>     at
>> java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:302)
>>     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)
>>     at
>> org.eclipse.jetty.session.AbstractSessionManager.resolveRequestedSessionId(AbstractSessionManager.java:1261)
>>     at
>> org.eclipse.jetty.ee10.servlet.SessionHandler.handle(SessionHandler.java:652)
>>     at
>> org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:811)
>>     at
>> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:177)
>>     at org.eclipse.jetty.server.Handler$Wrapper.handle(Handler.java:712)
>>     at org.eclipse.jetty.server.Server.handle(Server.java:176)
>>     at
>> org.eclipse.jetty.server.internal.HttpChannelState$HandlerInvoker.run(HttpChannelState.java:648)
>>     at
>> org.eclipse.jetty.util.thread.Invocable$ReadyTask.run(Invocable.java:105)
>>     at
>> org.eclipse.jetty.http2.server.internal.HttpStreamOverHTTP2$1.run(HttpStreamOverHTTP2.java:129)
>>     at
>> org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:478)
>>     at
>> org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:441)
>>     at
>> org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:293)
>>     at
>> org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.produce(AdaptiveExecutionStrategy.java:195)
>>     at
>> org.eclipse.jetty.http2.HTTP2Connection.produce(HTTP2Connection.java:211)
>>     at
>> org.eclipse.jetty.http2.HTTP2Connection.onFillable(HTTP2Connection.java:158)
>>     at
>> org.eclipse.jetty.http2.HTTP2Connection$FillableCallback.succeeded(HTTP2Connection.java:449)
>>     at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100)
>>     at
>> org.eclipse.jetty.io.ssl.SslConnection$SslEndPoint.onFillable(SslConnection.java:554)
>>     at
>> org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:373)
>>     at
>> org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:146)
>>     at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100)
>>     at
>> org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53)
>>     at
>> org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:478)
>>     at
>> org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:441)
>>     at
>> org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:293)
>>     at
>> org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.run(AdaptiveExecutionStrategy.java:201)
>>     at
>> org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:410)
>>     at
>> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:969)
>>     at
>> org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.doRunJob(QueuedThreadPool.java:1194)
>>     at
>> org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1149)
>>     at java.base/java.lang.Thread.run(Thread.java:1623)
>>
>> _______________________________________________
>> jetty-users mailing list
>> jetty-users@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/jetty-users
>>
>>
>> _______________________________________________
>> jetty-users mailing listjetty-us...@eclipse.org
>> To unsubscribe from this list, visit 
>> https://www.eclipse.org/mailman/listinfo/jetty-users
>>
>>
>> _______________________________________________
>> jetty-users mailing list
>> jetty-users@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/jetty-users
>>
> _______________________________________________
> jetty-users mailing list
> jetty-users@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/jetty-users
>


-- 
Greg Wilkins <gr...@webtide.com> CTO http://webtide.com
_______________________________________________
jetty-users mailing list
jetty-users@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/jetty-users

Reply via email to