You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Kevin Minder (JIRA)" <ji...@apache.org> on 2013/06/18 17:28:20 UTC

[jira] [Created] (KNOX-77) Need per-service outbound URL rewriting rules

Kevin Minder created KNOX-77:
--------------------------------

             Summary: 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
            Reporter: Kevin Minder


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