[
https://issues.apache.org/jira/browse/CAMEL-13351?focusedWorklogId=217583&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-217583
]
ASF GitHub Bot logged work on CAMEL-13351:
------------------------------------------
Author: ASF GitHub Bot
Created on: 23/Mar/19 08:55
Start Date: 23/Mar/19 08:55
Worklog Time Spent: 10m
Work Description: davsclaus commented on pull request #2832: CAMEL-13351:
camel-netty4-http: error resolving relative path
URL: https://github.com/apache/camel/pull/2832
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 217583)
Time Spent: 20m (was: 10m)
> camel-netty4-http: error resolving relative path
> ------------------------------------------------
>
> Key: CAMEL-13351
> URL: https://issues.apache.org/jira/browse/CAMEL-13351
> Project: Camel
> Issue Type: Bug
> Components: camel-netty4-http
> Reporter: Luca Burgazzoli
> Assignee: Luca Burgazzoli
> Priority: Major
> Fix For: 3.0.0, 2.23.2, 2.24.0, 2.22.4, 3.0.0-M2
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> DefaultNettyHttpBinding the uri used for request is computed as follow:
> {code}
> String uriForRequest = uri;
> if (configuration.isUseRelativePath()) {
> int indexOfPath = uri.indexOf((new URI(uri)).getPath());
> if (indexOfPath > 0) {
> uriForRequest = uri.substring(indexOfPath);
> }
> }
> {code}
> This has some issues:
> - indexOf + substring are in fact the same as what we cna achieve with new
> URI(uri).getPath()
> - in case the path is resolved to / then the logic is wrong as in case of an
> uri like http://something:80/ it will end up with //something:80/
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)