[ 
https://issues.apache.org/jira/browse/ARTEMIS-5226?focusedWorklogId=951045&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-951045
 ]

ASF GitHub Bot logged work on ARTEMIS-5226:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 06/Jan/25 17:12
            Start Date: 06/Jan/25 17:12
    Worklog Time Spent: 10m 
      Work Description: jbertram opened a new pull request, #5417:
URL: https://github.com/apache/activemq-artemis/pull/5417

   When the broker is started on Windows Jetty logs an exception at DEBUG level 
regarding a malformed URL which is set via the setBaseResourceAsString method 
on either
   org.eclipse.jetty.server.handler.ResourceHandler or 
org.eclipse.jetty.server.handler.ContextHandler.
   
   This commit fixes that by using setBaseResourceAsPath instead. It also 
removes 2 instances of setBaseResourceAsString on the ResourceHandler. These 
are not necessary because the value set on the ContextHandler will suffice.




Issue Time Tracking
-------------------

            Worklog Id:     (was: 951045)
    Remaining Estimate: 0h
            Time Spent: 10m

> Jetty choking on bad URI
> ------------------------
>
>                 Key: ARTEMIS-5226
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-5226
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Justin Bertram
>            Assignee: Justin Bertram
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> When the broker starts on Windows Jetty logs this exception at {{DEBUG}} 
> level:
> {noformat}
> 16:53:57 D: [SLF4J org.eclipse.jetty.util.resource.ResourceFactory] TRACE: 
> ignored
>   java.net.URISyntaxException: Illegal character in opaque part at index 2: 
> C:\path\to\broker\instance\web
>       at java.base/java.net.URI$Parser.fail(URI.java:2995)
>       at java.base/java.net.URI$Parser.checkChars(URI.java:3166)
>       at java.base/java.net.URI$Parser.parse(URI.java:3202)
>       at java.base/java.net.URI.<init>(URI.java:645)
>       at 
> org.eclipse.jetty.util.resource.ResourceFactory.newResource(ResourceFactory.java:343)
>       at 
> org.eclipse.jetty.server.handler.ResourceHandler.setBaseResourceAsString(ResourceHandler.java:294)
>       at 
> org.apache.activemq.artemis.component.WebServerComponent.start(WebServerComponent.java:204)
>       at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.addExternalComponent(ActiveMQServerImpl.java:1016)
>         ...{noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to