Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ATLAS-4318 : fix python client api url concatenation #130

Conversation

claudio-benfatto
Copy link
Contributor

Some of the python client api endpoints are currently broken as the result of the concatenation of the base url with the relative context path items.

Specifically this happens for those path which contain a trailing forward slash (/), e.g.

This produced requests of the kind:

/api/atlas/v2/entity/uniqueAttribute/type//topic_schema

which obviously resulted in errors.

Instead of simply removing the / from the base paths I've chosen the approach of replacing the url concatenation method with a more robust one that handles leading and trailing slashes transparently.

I did not find any tests for this module. If I'm wrong please let me know and I'll add/modify them.

Regards!

Copy link
Contributor

@nikhilbonte nikhilbonte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks goo to me

@nixonrodrigues
Copy link
Contributor

+1 for the PR

@nixonrodrigues nixonrodrigues changed the title fix: fix python client api url concatenation ATLAS-4318 : fix python client api url concatenation Jun 1, 2021
@nixonrodrigues nixonrodrigues merged commit 4f74de1 into apache:master Jun 1, 2021
asfgit pushed a commit that referenced this pull request Jun 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants