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

CODENVY-538:Fix checking of recipe location: now will match only host… #1301

Merged
merged 2 commits into from
May 20, 2016

Conversation

vparfonov
Copy link
Contributor

… wihout scheme.

Add method for download file in case server send redirect(in some reason setInstanceFollowRedirects(true) don't work so need to do one more request)

Signed-off-by: Vitaly Parfonov vparfonov@codenvy.com

@skabashnyuk @garagatyi @riuvshin

… wihout scheme.

Add method for download file in case server send redirect(in some reason setInstanceFollowRedirects(true) don't work so need to do one more request)

Signed-off-by: Vitaly Parfonov <vparfonov@codenvy.com>
// add user token to be able to download user's private recipe
if (machineConfig.getSource().getLocation().startsWith(apiEndpoint)) {
final String apiEndPointHost = apiEndpoint.getHost();
final String host = UriBuilder.fromUri(location).build().getHost();

Choose a reason for hiding this comment

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

Why not use targetUriBuilder instead of creating new uribuilder

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@garagatyi check my fix pls

@vparfonov
Copy link
Contributor Author

@codenvy-ci
Copy link

Build # 637 - FAILED

Please check console output at http://ci.codenvy-dev.com/jenkins/job/che-pullrequests-build/637/ to view the results.

@skabashnyuk
Copy link
Contributor

ОК

Signed-off-by: Vitaly Parfonov <vparfonov@codenvy.com>
@garagatyi
Copy link

LGTM

@vparfonov vparfonov merged commit 88eb928 into master May 20, 2016
@vparfonov vparfonov deleted the CODENVY-538 branch May 20, 2016 09:07
@codenvy-ci
Copy link

Build # 645 - FAILED

Please check console output at http://ci.codenvy-dev.com/jenkins/job/che-pullrequests-build/645/ to view the results.

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.

5 participants