You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Luca Burgazzoli (JIRA)" <ji...@apache.org> on 2019/03/20 12:34:00 UTC

[jira] [Created] (CAMEL-13351) camel-netty4-http

Luca Burgazzoli created CAMEL-13351:
---------------------------------------

             Summary: camel-netty4-http
                 Key: CAMEL-13351
                 URL: https://issues.apache.org/jira/browse/CAMEL-13351
             Project: Camel
          Issue Type: New Feature
          Components: camel-netty4-http
            Reporter: Luca Burgazzoli
            Assignee: Luca Burgazzoli
             Fix For: 3.0.0, 2.23.2, 3.0.0-M2


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)