Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Failed to parse URI #97

Open
asifiqbal opened this issue Nov 3, 2015 · 6 comments
Open

Failed to parse URI #97

asifiqbal opened this issue Nov 3, 2015 · 6 comments

Comments

@asifiqbal
Copy link

Trying to find out why rvc fails when password has odd characters? I am calling it from bash

read -r -s -p Password: _pass

rvc "$_user":"$_pass"@vcenter.example.com give the following error

Failed to parse URI "asifqwest:@vctr-01.example.net": bad component(expected user component):

Looks like it breaks with certain passwords?

@asifiqbal
Copy link
Author

after lot of debug I found it does not a like password like this 'Z#l]zMs&Pp4I'

need a fix bad!

@asifiqbal
Copy link
Author

RVC::URIParser.parse(%{user:bzX#s&[email protected]})
URI::InvalidComponentError: bad component(expected user component):

@codemonkeyjohn
Copy link
Contributor

Try the following instead:

RBVMOMI_USER=user
export RBVMOMI_USER

read -r -s -p Password: RBVMOMI_PASSWORD
export RBVMOMI_PASSWORD

rvc vcenter.example.com

@asifiqbal
Copy link
Author

Thanks looks to be working! Thanks a lot!

@asifiqbal
Copy link
Author

looks like ovftool dislikes those characters in the password as well? any suggestion on a environment variable for that? I know this is off topic for rvc but could not find a better place to ask this question without creating an account with vmware.

@codemonkeyjohn
Copy link
Contributor

I haven't used ovftool, but this article indicates that you should be able to URL encode the odd characters.

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

No branches or pull requests

2 participants