question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Windows: Escape ampersand in keystore password

See original GitHub issue

Hi all. Has anybody managed to put & into keystorePassword or keyPassword capability on Windows?

I’m getting build errors when building Espresso server with password like START&END:

Error: Unable to build Espresso server - Process ended with exitcode 1 (cmd: 'gradlew.bat -PappiumKeyPassword\=START&END')
Gradle error message:
END is not recognized as an internal or external command,

I tried to escape the password like "START&END" or START\&END or START^&END with no success. It’s unfortunate the password includes an ampersand but I cannot change it.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
KazuCocoacommented, Feb 28, 2022

okay, thanks for the confirmation!

Yes, another issue helps me to handle issues. Probably I need to add the same flag in similar places.

1reaction
KazuCocoacommented, Feb 22, 2022

mm, what env did you run? I checked some commands as https://github.com/appium/appium-espresso-driver/pull/753 (e.g. ./gradlew.bat -PappiumKeyPassword\='START\"&\"END' did not show recognized error etc) on Win 10 powershell. (not via appium at this time)

Appium drivers are going to https://appiumpro.com/editions/122-installing-appium-20-and-the-driver-and-plugins-cli base, so you can install an arbitrary espresso driver as appium driver install espresso@version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ampersand in Windows Password - batch file - Super User
You are correct. The ampersand is a special character in the windows command line. Typically to escape it you use the caret (^),...
Read more >
How to pass password with special characters in cmd?
From this analysis, it is found that only special character to be escaped is " and any < or > symbol occurring after...
Read more >
Enclose ampersand character in a password
Hi! I get the error that the password is incorrect, am I using the correct escape signs in the password for passing the...
Read more >
linux - How to escape ! in password? - Server Fault
You can store the password in a bash variable: $ pass='one_@&!two'. Then substitute the variable in the command: $ mysql -umyuser -p$pass.
Read more >
Android Signing Task V3.0 fails when password string ...
If the keystore file password or the keystore key password have an ampersand (&) in the string then the commands fail because it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found