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

Reply via email to