Bug 61055

Summary: RewriteValve proxy support
Product: Tomcat 9 Reporter: romain.manni-bucau <rmannibucau>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Severity: enhancement    
Priority: P2    
Version: 9.0.0.M20   
Target Milestone: -----   
Hardware: All   
OS: All   

Description romain.manni-bucau 2017-04-30 12:55:17 UTC

in rewrite valve there is this comment:

        // FIXME: Proxy not supported, would require proxy capabilities in Tomcat
        /* } else if (flag.startsWith("proxy") || flag.startsWith("P")) {

Is it planned to actually implement it? One implementation could rely on some external library addition like httpcomponent for instance. Wdyt?

If not intended maybe throwing an error or warning should replace that commented logic?
Comment 1 Remy Maucherat 2017-04-30 16:23:48 UTC
The documentation for the valve is accurate ("P" is not mentioned).

Writing a proxy is rather big business IMO both for development and even more for maintenance. There's no plan to write one at the moment, unless something is contributed.
Comment 2 Mark Thomas 2017-05-16 13:28:57 UTC
I've updated the comments to make it clear that there are no plans to implement proxy support.

This has been fixed in:
- 9.0.x for 9.0.0.M22 onwards
- 8.5.x for 8.5.16 onwards
- 8.0.x for 8.0.45 onwards