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

Solve communication problems with jupiter #308

Merged
merged 2 commits into from
Mar 17, 2023
Merged

Conversation

lagoan
Copy link
Contributor

@lagoan lagoan commented Mar 16, 2023

Context

Please describe any relevant motivation and context for these changes.

PMPY was not working in staging and all preservation attempts failed. PMPY could not find the full path to jupiter because it was using the URI request_uri which is the path after the localhost. If PMPY and jupiter are on different servers, this will not work.

Related to #297

What's New

Changed use of method URI.request_uri to joining URI with new path.

PMPY could not find the full path to jupiter because it was using the
URI request_uri which is the path after the localhost. If PMPY and
jupiter are on different servers, this will not work.
@@ -86,7 +86,7 @@ def authenticate_http_calls
@uri = URI.parse(PushmiPullyu.options[:jupiter][:jupiter_url])
@http = Net::HTTP.new(@uri.host, @uri.port)
@http.use_ssl = true if @uri.instance_of? URI::HTTPS
request = Net::HTTP::Post.new("#{@uri.request_uri}auth/system")
request = Net::HTTP::Post.new(URI.join(@uri,'/auth/system'))
Copy link
Contributor

@ConnorSheremeta ConnorSheremeta Mar 16, 2023

Choose a reason for hiding this comment

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

LGTM except this robocop violation

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed!

Copy link
Contributor

@ConnorSheremeta ConnorSheremeta left a comment

Choose a reason for hiding this comment

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

giphy

@lagoan lagoan merged commit 56b21e2 into master Mar 17, 2023
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.

2 participants