You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Madhan Neethiraj (Jira)" <ji...@apache.org> on 2023/02/11 08:17:00 UTC

[jira] [Comment Edited] (RANGER-4079) Python client to use the given Ranger endpoint, instead of its baseURL

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

Madhan Neethiraj edited comment on RANGER-4079 at 2/11/23 8:16 AM:
-------------------------------------------------------------------

Fix included in [Apache Ranger Python client 0.0.9|https://pypi.org/project/apache-ranger/0.0.9/].
{noformat}
commit 63cf6007fb5c25a8b4558ad8b0ce31322e19d853 (HEAD -> master, origin/master, origin/HEAD)
Author: Madhan Neethiraj <ma...@apache.org>
Date:   Fri Feb 10 14:05:44 2023 -0800

    RANGER-4079: Python client fix to handle URLs having subpaths
{noformat}
 
{noformat}
commit 4aaa1b11be3e88d69147ce947c63fb58834e0dd1 (HEAD -> ranger-2.4)
Author: Madhan Neethiraj <ma...@apache.org>
Date:   Fri Feb 10 14:05:44 2023 -0800

    RANGER-4079: Python client fix to handle URLs having subpaths

    (cherry picked from commit 63cf6007fb5c25a8b4558ad8b0ce31322e19d853)
{noformat}


was (Author: madhan.neethiraj):
 
{noformat}
commit 63cf6007fb5c25a8b4558ad8b0ce31322e19d853 (HEAD -> master, origin/master, origin/HEAD)
Author: Madhan Neethiraj <ma...@apache.org>
Date:   Fri Feb 10 14:05:44 2023 -0800

    RANGER-4079: Python client fix to handle URLs having subpaths
{noformat}
 
{noformat}
commit 4aaa1b11be3e88d69147ce947c63fb58834e0dd1 (HEAD -> ranger-2.4)
Author: Madhan Neethiraj <ma...@apache.org>
Date:   Fri Feb 10 14:05:44 2023 -0800

    RANGER-4079: Python client fix to handle URLs having subpaths

    (cherry picked from commit 63cf6007fb5c25a8b4558ad8b0ce31322e19d853)
{noformat}

> Python client to use the given Ranger endpoint, instead of its baseURL
> ----------------------------------------------------------------------
>
>                 Key: RANGER-4079
>                 URL: https://issues.apache.org/jira/browse/RANGER-4079
>             Project: Ranger
>          Issue Type: Bug
>          Components: intg
>            Reporter: Madhan Neethiraj
>            Assignee: Madhan Neethiraj
>            Priority: Major
>             Fix For: 3.0.0, 2.4.0
>
>         Attachments: RANGER-4079.patch
>
>
> Ranger can be deployed behind a proxy which can result in Ranger endpoint to include a subpath, like [https://hostname:6182/ranger] (instead of [https://hostname:6182|https://hostname:6182)./]).
> Python client for Ranger strips the last path of the such URL while constructing the URL for REST APIs - like {{{}https://hostname:6182/service/public/v2/api/policy{}}}. This results in REST API calls to fail since the URL doesn't include {{{}/ranger{}}}. Ranger Python client needs to be updated to address this issue.
> In addition, it will be desirable to be able to send few headers and query parameters in each API call, for example to send requestId header or tenantId as a parameter.



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