HBASE-24567 Create release should url-encode all characters when building git uri
By default, `urllib.quote` will skipp over `/` characters, which are valid for use in passwords. Signed-off-by: stack <stack@apache.org> Signed-off-by: Matt Foley <mattf@apache.org>
This commit is contained in:
parent
5a79a1c83c
commit
90b339a4f2
|
@ -412,8 +412,8 @@ function git_clone_overwrite {
|
|||
echo "[INFO] clone will be of the gitbox repo for ${PROJECT}."
|
||||
if [ -n "${ASF_USERNAME}" ] && [ -n "${ASF_PASSWORD}" ]; then
|
||||
# Ugly!
|
||||
encoded_username=$(python -c "import urllib; print urllib.quote('''$ASF_USERNAME''')")
|
||||
encoded_password=$(python -c "import urllib; print urllib.quote('''$ASF_PASSWORD''')")
|
||||
encoded_username=$(python -c "import urllib; print urllib.quote('''$ASF_USERNAME''', '')")
|
||||
encoded_password=$(python -c "import urllib; print urllib.quote('''$ASF_PASSWORD''', '')")
|
||||
GIT_REPO="https://$encoded_username:$encoded_password@${asf_repo}"
|
||||
else
|
||||
GIT_REPO="https://${asf_repo}"
|
||||
|
|
Loading…
Reference in New Issue