[ https://issues.apache.org/jira/browse/KNOX-3046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17860299#comment-17860299 ]
slankka commented on KNOX-3046: ------------------------------- Current: {code:xml} <rule dir="IN" name="YARNUI/yarn/inbound/ws" pattern="*://*:*/**/yarn/ws/v1/{**}"> <rewrite template="{$serviceUrl[YARNUI]}/ws/v1/{**}"/> </rule> {code} Fixed: {code:xml} <rule dir="IN" name="YARNUI/yarn/inbound/ws" pattern="*://*:*/**/yarn/ws/v1/{**}?{**}"> <rewrite template="{$serviceUrl[YARNUI]}/ws/v1/{**}?{**}"/> </rule> {code} > Yarn RM REST API rewrite should not ignore query parameters > ----------------------------------------------------------- > > Key: KNOX-3046 > URL: https://issues.apache.org/jira/browse/KNOX-3046 > Project: Apache Knox > Issue Type: Improvement > Components: Release > Affects Versions: 2.0.0, 1.6.0, 2.2.0, 2.1.0 > Reporter: slankka > Priority: Major > Labels: gateway, patch-available, pull-request-available > Original Estimate: 1h > Remaining Estimate: 1h > > Knox Gateway rewrite rule should respect YARNUI/ws/v1/cluster/apps > expected: > * /ws/v1/cluster/apps?states=running should return running application. > actual: > Knox Gateway returns all. > Cause: > It's obvious that rewrite rule do not respect http query parameters. > > [Apache Hadoop 3.4.0 – ResourceManager REST > APIs.|https://hadoop.apache.org/docs/current/hadoop-yarn/hadoop-yarn-site/ResourceManagerRest.html#Cluster_Applications_API] -- This message was sent by Atlassian Jira (v8.20.10#820010)