[ 
https://issues.apache.org/jira/browse/KNOX-77?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13742593#comment-13742593
 ] 

ASF subversion and git services commented on KNOX-77:
-----------------------------------------------------

Commit 7c91f04411adc6046edb8c41c3c1bfe8a60f5d78 in branch refs/heads/master 
from [~kevin.minder]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-knox.git;h=7c91f04 ]

KNOX-77: Add support for selecting rewrite rules by path.

                
> Need per-service outbound URL rewriting rules
> ---------------------------------------------
>
>                 Key: KNOX-77
>                 URL: https://issues.apache.org/jira/browse/KNOX-77
>             Project: Apache Knox
>          Issue Type: Bug
>    Affects Versions: 0.2.0
>            Reporter: Kevin Minder
>            Assignee: Kevin Minder
>            Priority: Critical
>             Fix For: 0.3.0
>
>
> For example the HdfsDeploymentContributor outbound rule matches any outbound 
> URL and rewrites it to be a DataNode URL.  This isn't appropriate.  Outbound 
> rules might need to be per service or at least allow a particular service to 
> select a best match.
>     rule = rules.addRule( getRole() + "/" + getName() + "/datanode/outbound" )
>         .directions( "outbound" )
>         .pattern( "*://*:*/**?**" );
>     match = rule.addStep( "match" );
>     match.pattern( "*://{host}:{port}/{path=**}?{**}" );
>     rewrite = rule.addStep( "rewrite" );
>     rewrite.template( CLUSTER_URL_FUNCTION + DATANODE_EXTERNAL_PATH + 
> "/{path=**}?{host}&{port}&{**}" );

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to