[ 
https://issues.apache.org/jira/browse/KNOX-2958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sandor Molnar updated KNOX-2958:
--------------------------------
    Fix Version/s: 2.1.0
           Status: Patch Available  (was: In Progress)

> Few Service's API links for a topology on knox home page is incorrect
> ---------------------------------------------------------------------
>
>                 Key: KNOX-2958
>                 URL: https://issues.apache.org/jira/browse/KNOX-2958
>             Project: Apache Knox
>          Issue Type: Bug
>          Components: Homepage
>    Affects Versions: 2.0.0
>            Reporter: J.Andreina
>            Assignee: Sandor Molnar
>            Priority: Major
>             Fix For: 2.1.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> *PROBLEM STATEMENT:*
> Service API links via knox in knox homepage is incorrect 
> *BUILDS:*
> knox 2.0
> *STEPS TO REPRODUCE:*
> 1. Create a topology1 with WEBHDFS,cm-api,OOZIE,RESOURCEMANAGER service 
> 2. Login to knox homepage 
> 3. go to topology1
> 4. Click on webhdfs api icon
> 5. Fetch the sample api links
> *CURRENT BEHAVIOUR:*
> 1. cm api url is invalid on knox homepage
> invalid url:
>  Fetch all CM-managed clusters
> curl -iv -X GET "https://knox-host:/gateway/topology1/cm-apiclusters";
> Fetches HDFS service details from cluster named 'c1'
> curl -iv -X GET 
> "https://knox-host:/gateway/topology1/cm-apiclusters/c1/services/HDFS";
> 2. webhdfs api link is incorrect
> incorrect url
> curl -iv -X GET 
> "https://knox-host:/gateway/topology1/webhdfsv1/testPath?op=LISTSTATUS";
> 3. Oozie api link is incorrect . Should have "/" after oozie
> incorrect url
>  curl -iv -X GET "https://knox-host:/gateway/topology1/oozieoozie/versions";
> 4. Resource manager api link is invalid . Should not have ws in the url
> incorrect url
> curl -iv -X GET 
> "https://knox-host:/gateway/topology1/resourcemanagerws/v1/cluster/metrics";
> *EXPECTED BEHAVIOUR:*
> correct urls as follows
> 1. cm valid url : should have "/" after webhdfs in the url as below
> curl -iv -X GET "https://knox-host:/gateway/topology1/cm-api/v40/clusters";
> 2. webhdfs valid url :
> valid url : should have "/" after webhdfs in the url as below
> curl -iv -X GET 
> "https://knox-host:/gateway/topology1/webhdfs/v1/testPath?op=LISTSTATUS";
> 3. oozie url:
> curl -iku hrt_qa:Password@123 -X GET 
> "https://knox-host:/gateway/topology1/oozie/oozie/versions";
> 4. RM url :
> curl -iv -X GET 
> "https://knox-host:/gateway/topology1/resourcemanager/v1/cluster/metrics";
> *OCCURRENCE:*
> Reproducible
> *IMPACT:*
> Not pointing to the appropriate api link , which causes the user to unable to 
> access the service api via knox.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to