You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Alin Vasile (JIRA)" <ji...@apache.org> on 2011/09/02 21:15:09 UTC

[jira] [Created] (HTTPCLIENT-1123) Implement a way to override or resolve DNS entries defined in the OS

Implement a way to override or resolve DNS entries defined in the OS
--------------------------------------------------------------------

                 Key: HTTPCLIENT-1123
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1123
             Project: HttpComponents HttpClient
          Issue Type: New Feature
          Components: HttpClient
            Reporter: Alin Vasile
            Priority: Minor


When working with HttpClient in restrictive environments, where the user doesn't have the permissisions to edit the local /etc/hosts file or the DNS configuration, can be eased with an DNS Overrider capability. 

This can be useful with JMeter which can follow redirects automatically and resolve some of the redirected hosts against its configuration. Another example is a custom forward proxy, written in Java and based on httpclient, which can be deployed is such a restricted environment that would ease the development of various web solutions for some developers. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: [jira] [Commented] (HTTPCLIENT-1123) Implement a way to override or resolve DNS entries defined in the OS

Posted by Vasile Alin <al...@gmail.com>.
This is a good idea in this way we favour exceptions instead of custom
returns such as null.

On 5 September 2011 22:02, Oleg Kalnichevski (JIRA) <ji...@apache.org> wrote:
>
>    [ https://issues.apache.org/jira/browse/HTTPCLIENT-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13097254#comment-13097254 ]
>
> Oleg Kalnichevski commented on HTTPCLIENT-1123:
> -----------------------------------------------
>
> Almost there. I think it would be better if the DnsResolver was always to resolve hostname to an address or throw an UnknownHostException if the address could not be resolved instead of returning null. Individual implementations may choose to fall back onto InetAddress#getAllByName when appropriate or signal failure to resolve the hostname by throwing UnknownHostException.
> ---
> public interface DnsResolver {
>
>    InetAddress[] resolve(String host) throws UnknownHostException;
>
> }
> ---
> What do you think?
>
> Oleg
>
>> Implement a way to override or resolve DNS entries defined in the OS
>> --------------------------------------------------------------------
>>
>>                 Key: HTTPCLIENT-1123
>>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1123
>>             Project: HttpComponents HttpClient
>>          Issue Type: New Feature
>>          Components: HttpClient
>>            Reporter: Alin Vasile
>>            Priority: Minor
>>         Attachments: dns_overrider_poc.patch, dns_overrider_poc.patch, dns_resolver.patch, dns_resolver.patch
>>
>>
>> When working with HttpClient in restrictive environments, where the user doesn't have the permissisions to edit the local /etc/hosts file or the DNS configuration, can be eased with an DNS Overrider capability.
>> This can be useful with JMeter which can follow redirects automatically and resolve some of the redirected hosts against its configuration. Another example is a custom forward proxy, written in Java and based on httpclient, which can be deployed is such a restricted environment that would ease the development of various web solutions for some developers.
>
> --
> This message is automatically generated by JIRA.
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> For additional commands, e-mail: dev-help@hc.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


[jira] [Reopened] (HTTPCLIENT-1123) Implement a way to override or resolve DNS entries defined in the OS

Posted by "Alin Vasile (Reopened) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alin Vasile reopened HTTPCLIENT-1123:
-------------------------------------



PoolingClientConnectionManager constructor doesn't pick the provided dns resolver, but instead always goes with SystemDefaultDnsResolver:

public PoolingClientConnectionManager(final SchemeRegistry schemeRegistry,
                final long timeToLive, final TimeUnit tunit,
                final DnsResolver dnsResolver) {
        super();
        if (schemeRegistry == null) {
            throw new IllegalArgumentException("Scheme registry may not be null");
        }
        this.schemeRegistry = schemeRegistry;
        this.dnsResolver  = new SystemDefaultDnsResolver();
        this.operator = createConnectionOperator(schemeRegistry);
        this.pool = new HttpConnPool(this.log, 2, 20, timeToLive, tunit);
    }
                
> Implement a way to override or resolve DNS entries defined in the OS
> --------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1123
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1123
>             Project: HttpComponents HttpClient
>          Issue Type: New Feature
>          Components: HttpClient
>            Reporter: Alin Vasile
>            Priority: Minor
>             Fix For: 4.2 Alpha1
>
>         Attachments: dns_overrider_poc.patch, dns_overrider_poc.patch, dns_resolver.patch, dns_resolver.patch, dns_resolver.patch, dns_system_resolver.patch
>
>
> When working with HttpClient in restrictive environments, where the user doesn't have the permissisions to edit the local /etc/hosts file or the DNS configuration, can be eased with an DNS Overrider capability. 
> This can be useful with JMeter which can follow redirects automatically and resolve some of the redirected hosts against its configuration. Another example is a custom forward proxy, written in Java and based on httpclient, which can be deployed is such a restricted environment that would ease the development of various web solutions for some developers. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


[jira] [Updated] (HTTPCLIENT-1123) Implement a way to override or resolve DNS entries defined in the OS

Posted by "Alin Vasile (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alin Vasile updated HTTPCLIENT-1123:
------------------------------------

    Attachment: dns_overrider_poc.patch

Proof of concept work. If this is OK I can add a set of unit tests and put the ASF headers to the source files.

> Implement a way to override or resolve DNS entries defined in the OS
> --------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1123
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1123
>             Project: HttpComponents HttpClient
>          Issue Type: New Feature
>          Components: HttpClient
>            Reporter: Alin Vasile
>            Priority: Minor
>         Attachments: dns_overrider_poc.patch
>
>
> When working with HttpClient in restrictive environments, where the user doesn't have the permissisions to edit the local /etc/hosts file or the DNS configuration, can be eased with an DNS Overrider capability. 
> This can be useful with JMeter which can follow redirects automatically and resolve some of the redirected hosts against its configuration. Another example is a custom forward proxy, written in Java and based on httpclient, which can be deployed is such a restricted environment that would ease the development of various web solutions for some developers. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


[jira] [Commented] (HTTPCLIENT-1123) Implement a way to override or resolve DNS entries defined in the OS

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HTTPCLIENT-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13097254#comment-13097254 ] 

Oleg Kalnichevski commented on HTTPCLIENT-1123:
-----------------------------------------------

Almost there. I think it would be better if the DnsResolver was always to resolve hostname to an address or throw an UnknownHostException if the address could not be resolved instead of returning null. Individual implementations may choose to fall back onto InetAddress#getAllByName when appropriate or signal failure to resolve the hostname by throwing UnknownHostException.
---
public interface DnsResolver {

    InetAddress[] resolve(String host) throws UnknownHostException;

}
---
What do you think?

Oleg

> Implement a way to override or resolve DNS entries defined in the OS
> --------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1123
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1123
>             Project: HttpComponents HttpClient
>          Issue Type: New Feature
>          Components: HttpClient
>            Reporter: Alin Vasile
>            Priority: Minor
>         Attachments: dns_overrider_poc.patch, dns_overrider_poc.patch, dns_resolver.patch, dns_resolver.patch
>
>
> When working with HttpClient in restrictive environments, where the user doesn't have the permissisions to edit the local /etc/hosts file or the DNS configuration, can be eased with an DNS Overrider capability. 
> This can be useful with JMeter which can follow redirects automatically and resolve some of the redirected hosts against its configuration. Another example is a custom forward proxy, written in Java and based on httpclient, which can be deployed is such a restricted environment that would ease the development of various web solutions for some developers. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


[jira] [Commented] (HTTPCLIENT-1123) Implement a way to override or resolve DNS entries defined in the OS

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HTTPCLIENT-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13096928#comment-13096928 ] 

Oleg Kalnichevski commented on HTTPCLIENT-1123:
-----------------------------------------------

The patch is too 'noisy' (a lot of changes are due to different formatting, line wrapping, etc), which makes it difficult to review. Could you please create a new patch with the least amount of non-functional changes?

Oleg 

> Implement a way to override or resolve DNS entries defined in the OS
> --------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1123
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1123
>             Project: HttpComponents HttpClient
>          Issue Type: New Feature
>          Components: HttpClient
>            Reporter: Alin Vasile
>            Priority: Minor
>         Attachments: dns_overrider_poc.patch, dns_overrider_poc.patch, dns_resolver.patch
>
>
> When working with HttpClient in restrictive environments, where the user doesn't have the permissisions to edit the local /etc/hosts file or the DNS configuration, can be eased with an DNS Overrider capability. 
> This can be useful with JMeter which can follow redirects automatically and resolve some of the redirected hosts against its configuration. Another example is a custom forward proxy, written in Java and based on httpclient, which can be deployed is such a restricted environment that would ease the development of various web solutions for some developers. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


[jira] [Updated] (HTTPCLIENT-1123) Implement a way to override or resolve DNS entries defined in the OS

Posted by "Alin Vasile (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alin Vasile updated HTTPCLIENT-1123:
------------------------------------

    Attachment: dns_resolver.patch

Sorry about the noise. Attached a (hopefully) much cleaner version. Also I moved the DnsResolver interface from the package org.apache.http.impl.conn to org.apache.http.conn.

> Implement a way to override or resolve DNS entries defined in the OS
> --------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1123
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1123
>             Project: HttpComponents HttpClient
>          Issue Type: New Feature
>          Components: HttpClient
>            Reporter: Alin Vasile
>            Priority: Minor
>         Attachments: dns_overrider_poc.patch, dns_overrider_poc.patch, dns_resolver.patch, dns_resolver.patch
>
>
> When working with HttpClient in restrictive environments, where the user doesn't have the permissisions to edit the local /etc/hosts file or the DNS configuration, can be eased with an DNS Overrider capability. 
> This can be useful with JMeter which can follow redirects automatically and resolve some of the redirected hosts against its configuration. Another example is a custom forward proxy, written in Java and based on httpclient, which can be deployed is such a restricted environment that would ease the development of various web solutions for some developers. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


[jira] [Commented] (HTTPCLIENT-1123) Implement a way to override or resolve DNS entries defined in the OS

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HTTPCLIENT-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13098371#comment-13098371 ] 

Oleg Kalnichevski commented on HTTPCLIENT-1123:
-----------------------------------------------

Patch checked in.

Oleg

> Implement a way to override or resolve DNS entries defined in the OS
> --------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1123
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1123
>             Project: HttpComponents HttpClient
>          Issue Type: New Feature
>          Components: HttpClient
>            Reporter: Alin Vasile
>            Priority: Minor
>             Fix For: 4.2 Alpha1
>
>         Attachments: dns_overrider_poc.patch, dns_overrider_poc.patch, dns_resolver.patch, dns_resolver.patch, dns_resolver.patch, dns_system_resolver.patch
>
>
> When working with HttpClient in restrictive environments, where the user doesn't have the permissisions to edit the local /etc/hosts file or the DNS configuration, can be eased with an DNS Overrider capability. 
> This can be useful with JMeter which can follow redirects automatically and resolve some of the redirected hosts against its configuration. Another example is a custom forward proxy, written in Java and based on httpclient, which can be deployed is such a restricted environment that would ease the development of various web solutions for some developers. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


[jira] [Resolved] (HTTPCLIENT-1123) Implement a way to override or resolve DNS entries defined in the OS

Posted by "Oleg Kalnichevski (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski resolved HTTPCLIENT-1123.
-------------------------------------------

    Resolution: Fixed

Fixed.

Oleg
                
> Implement a way to override or resolve DNS entries defined in the OS
> --------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1123
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1123
>             Project: HttpComponents HttpClient
>          Issue Type: New Feature
>          Components: HttpClient
>            Reporter: Alin Vasile
>            Priority: Minor
>             Fix For: 4.2 Alpha1
>
>         Attachments: dns_overrider_poc.patch, dns_overrider_poc.patch, dns_resolver.patch, dns_resolver.patch, dns_resolver.patch, dns_system_resolver.patch
>
>
> When working with HttpClient in restrictive environments, where the user doesn't have the permissisions to edit the local /etc/hosts file or the DNS configuration, can be eased with an DNS Overrider capability. 
> This can be useful with JMeter which can follow redirects automatically and resolve some of the redirected hosts against its configuration. Another example is a custom forward proxy, written in Java and based on httpclient, which can be deployed is such a restricted environment that would ease the development of various web solutions for some developers. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


[jira] [Commented] (HTTPCLIENT-1123) Implement a way to override or resolve DNS entries defined in the OS

Posted by "Alin Vasile (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HTTPCLIENT-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13096602#comment-13096602 ] 

Alin Vasile commented on HTTPCLIENT-1123:
-----------------------------------------

Updated patch with examples for custom DNS resolving on auto-redirects. Please review ...

> Implement a way to override or resolve DNS entries defined in the OS
> --------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1123
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1123
>             Project: HttpComponents HttpClient
>          Issue Type: New Feature
>          Components: HttpClient
>            Reporter: Alin Vasile
>            Priority: Minor
>         Attachments: dns_overrider_poc.patch, dns_overrider_poc.patch
>
>
> When working with HttpClient in restrictive environments, where the user doesn't have the permissisions to edit the local /etc/hosts file or the DNS configuration, can be eased with an DNS Overrider capability. 
> This can be useful with JMeter which can follow redirects automatically and resolve some of the redirected hosts against its configuration. Another example is a custom forward proxy, written in Java and based on httpclient, which can be deployed is such a restricted environment that would ease the development of various web solutions for some developers. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


[jira] [Commented] (HTTPCLIENT-1123) Implement a way to override or resolve DNS entries defined in the OS

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HTTPCLIENT-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13096673#comment-13096673 ] 

Oleg Kalnichevski commented on HTTPCLIENT-1123:
-----------------------------------------------

Looks good to me. However, I think it would be slightly cleaner to provide an additional constructor to DefaultClientConnectionOperator and PoolingClientConnectionManager that takes DnsOverrider as an optional (nullable) parameter. I also think DnsResolver might be a better name for that interface that DnsOverrider. Otherwise, all is good. Please go ahead and add ASL headers and test cases. Please make sure to use spaces instead of tabs for indentation.

Oleg

> Implement a way to override or resolve DNS entries defined in the OS
> --------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1123
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1123
>             Project: HttpComponents HttpClient
>          Issue Type: New Feature
>          Components: HttpClient
>            Reporter: Alin Vasile
>            Priority: Minor
>         Attachments: dns_overrider_poc.patch, dns_overrider_poc.patch
>
>
> When working with HttpClient in restrictive environments, where the user doesn't have the permissisions to edit the local /etc/hosts file or the DNS configuration, can be eased with an DNS Overrider capability. 
> This can be useful with JMeter which can follow redirects automatically and resolve some of the redirected hosts against its configuration. Another example is a custom forward proxy, written in Java and based on httpclient, which can be deployed is such a restricted environment that would ease the development of various web solutions for some developers. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


[jira] [Updated] (HTTPCLIENT-1123) Implement a way to override or resolve DNS entries defined in the OS

Posted by "Alin Vasile (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alin Vasile updated HTTPCLIENT-1123:
------------------------------------

    Attachment: dns_resolver.patch

> Implement a way to override or resolve DNS entries defined in the OS
> --------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1123
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1123
>             Project: HttpComponents HttpClient
>          Issue Type: New Feature
>          Components: HttpClient
>            Reporter: Alin Vasile
>            Priority: Minor
>         Attachments: dns_overrider_poc.patch, dns_overrider_poc.patch, dns_resolver.patch
>
>
> When working with HttpClient in restrictive environments, where the user doesn't have the permissisions to edit the local /etc/hosts file or the DNS configuration, can be eased with an DNS Overrider capability. 
> This can be useful with JMeter which can follow redirects automatically and resolve some of the redirected hosts against its configuration. Another example is a custom forward proxy, written in Java and based on httpclient, which can be deployed is such a restricted environment that would ease the development of various web solutions for some developers. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


[jira] [Commented] (HTTPCLIENT-1123) Implement a way to override or resolve DNS entries defined in the OS

Posted by "Alin Vasile (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HTTPCLIENT-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13097283#comment-13097283 ] 

Alin Vasile commented on HTTPCLIENT-1123:
-----------------------------------------

This is a good idea; in this way we favour exceptions instead of custom
returns such as null.

> Implement a way to override or resolve DNS entries defined in the OS
> --------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1123
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1123
>             Project: HttpComponents HttpClient
>          Issue Type: New Feature
>          Components: HttpClient
>            Reporter: Alin Vasile
>            Priority: Minor
>         Attachments: dns_overrider_poc.patch, dns_overrider_poc.patch, dns_resolver.patch, dns_resolver.patch
>
>
> When working with HttpClient in restrictive environments, where the user doesn't have the permissisions to edit the local /etc/hosts file or the DNS configuration, can be eased with an DNS Overrider capability. 
> This can be useful with JMeter which can follow redirects automatically and resolve some of the redirected hosts against its configuration. Another example is a custom forward proxy, written in Java and based on httpclient, which can be deployed is such a restricted environment that would ease the development of various web solutions for some developers. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


[jira] [Resolved] (HTTPCLIENT-1123) Implement a way to override or resolve DNS entries defined in the OS

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski resolved HTTPCLIENT-1123.
-------------------------------------------

       Resolution: Fixed
    Fix Version/s: 4.2 Alpha1

Patch checked in with some minor tweaks.

Oleg

> Implement a way to override or resolve DNS entries defined in the OS
> --------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1123
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1123
>             Project: HttpComponents HttpClient
>          Issue Type: New Feature
>          Components: HttpClient
>            Reporter: Alin Vasile
>            Priority: Minor
>             Fix For: 4.2 Alpha1
>
>         Attachments: dns_overrider_poc.patch, dns_overrider_poc.patch, dns_resolver.patch, dns_resolver.patch, dns_resolver.patch
>
>
> When working with HttpClient in restrictive environments, where the user doesn't have the permissisions to edit the local /etc/hosts file or the DNS configuration, can be eased with an DNS Overrider capability. 
> This can be useful with JMeter which can follow redirects automatically and resolve some of the redirected hosts against its configuration. Another example is a custom forward proxy, written in Java and based on httpclient, which can be deployed is such a restricted environment that would ease the development of various web solutions for some developers. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


[jira] [Updated] (HTTPCLIENT-1123) Implement a way to override or resolve DNS entries defined in the OS

Posted by "Alin Vasile (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alin Vasile updated HTTPCLIENT-1123:
------------------------------------

    Attachment: dns_system_resolver.patch

Default DNS resolver that will translate the host names to IP addresses using the OS configuration.

> Implement a way to override or resolve DNS entries defined in the OS
> --------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1123
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1123
>             Project: HttpComponents HttpClient
>          Issue Type: New Feature
>          Components: HttpClient
>            Reporter: Alin Vasile
>            Priority: Minor
>             Fix For: 4.2 Alpha1
>
>         Attachments: dns_overrider_poc.patch, dns_overrider_poc.patch, dns_resolver.patch, dns_resolver.patch, dns_resolver.patch, dns_system_resolver.patch
>
>
> When working with HttpClient in restrictive environments, where the user doesn't have the permissisions to edit the local /etc/hosts file or the DNS configuration, can be eased with an DNS Overrider capability. 
> This can be useful with JMeter which can follow redirects automatically and resolve some of the redirected hosts against its configuration. Another example is a custom forward proxy, written in Java and based on httpclient, which can be deployed is such a restricted environment that would ease the development of various web solutions for some developers. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


[jira] [Updated] (HTTPCLIENT-1123) Implement a way to override or resolve DNS entries defined in the OS

Posted by "Alin Vasile (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alin Vasile updated HTTPCLIENT-1123:
------------------------------------

    Attachment: dns_resolver.patch

> Implement a way to override or resolve DNS entries defined in the OS
> --------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1123
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1123
>             Project: HttpComponents HttpClient
>          Issue Type: New Feature
>          Components: HttpClient
>            Reporter: Alin Vasile
>            Priority: Minor
>         Attachments: dns_overrider_poc.patch, dns_overrider_poc.patch, dns_resolver.patch, dns_resolver.patch, dns_resolver.patch
>
>
> When working with HttpClient in restrictive environments, where the user doesn't have the permissisions to edit the local /etc/hosts file or the DNS configuration, can be eased with an DNS Overrider capability. 
> This can be useful with JMeter which can follow redirects automatically and resolve some of the redirected hosts against its configuration. Another example is a custom forward proxy, written in Java and based on httpclient, which can be deployed is such a restricted environment that would ease the development of various web solutions for some developers. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


[jira] [Commented] (HTTPCLIENT-1123) Implement a way to override or resolve DNS entries defined in the OS

Posted by "Alin Vasile (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HTTPCLIENT-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13096913#comment-13096913 ] 

Alin Vasile commented on HTTPCLIENT-1123:
-----------------------------------------

Thanks for the review. In the initial proof-of-concept I didn't wanted to touch the existing API, so I extended the classes where I plugged in the new functionality.

I attached a new patch incorporating all your comments.

> Implement a way to override or resolve DNS entries defined in the OS
> --------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1123
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1123
>             Project: HttpComponents HttpClient
>          Issue Type: New Feature
>          Components: HttpClient
>            Reporter: Alin Vasile
>            Priority: Minor
>         Attachments: dns_overrider_poc.patch, dns_overrider_poc.patch, dns_resolver.patch
>
>
> When working with HttpClient in restrictive environments, where the user doesn't have the permissisions to edit the local /etc/hosts file or the DNS configuration, can be eased with an DNS Overrider capability. 
> This can be useful with JMeter which can follow redirects automatically and resolve some of the redirected hosts against its configuration. Another example is a custom forward proxy, written in Java and based on httpclient, which can be deployed is such a restricted environment that would ease the development of various web solutions for some developers. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


[jira] [Updated] (HTTPCLIENT-1123) Implement a way to override or resolve DNS entries defined in the OS

Posted by "Alin Vasile (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alin Vasile updated HTTPCLIENT-1123:
------------------------------------

    Attachment: dns_overrider_poc.patch

> Implement a way to override or resolve DNS entries defined in the OS
> --------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1123
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1123
>             Project: HttpComponents HttpClient
>          Issue Type: New Feature
>          Components: HttpClient
>            Reporter: Alin Vasile
>            Priority: Minor
>         Attachments: dns_overrider_poc.patch, dns_overrider_poc.patch
>
>
> When working with HttpClient in restrictive environments, where the user doesn't have the permissisions to edit the local /etc/hosts file or the DNS configuration, can be eased with an DNS Overrider capability. 
> This can be useful with JMeter which can follow redirects automatically and resolve some of the redirected hosts against its configuration. Another example is a custom forward proxy, written in Java and based on httpclient, which can be deployed is such a restricted environment that would ease the development of various web solutions for some developers. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org