Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Cli bug fix: strip the password in destination path #224

Merged
merged 3 commits into from
Jun 14, 2017
Merged

Cli bug fix: strip the password in destination path #224

merged 3 commits into from
Jun 14, 2017

Conversation

datoug
Copy link
Contributor

@datoug datoug commented Jun 14, 2017

For the hacky security check, read destination doesn't handle that, so strip the password before issuing the read destination call

@datoug datoug requested a review from kirg June 14, 2017 22:46
func readDestinationFromMetadata(mClient mcli.Client, path string) (*shared.DestinationDescription, error) {
parts := strings.Split(path, `+`)
return mClient.ReadDestination(&shared.ReadDestinationRequest{
Path: &parts[0],
Copy link
Contributor

Choose a reason for hiding this comment

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

do it inline?

Path: common.StringPtr(strings.Split(path, `+`)[0]),

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 68.263% when pulling 5cf67d9 on cli_fix into f69bc09 on master.

@datoug datoug merged commit 7673e97 into master Jun 14, 2017
@datoug datoug deleted the cli_fix branch June 14, 2017 23:20
@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 68.279% when pulling 2fe6f3e on cli_fix into f69bc09 on master.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants