-
-
Notifications
You must be signed in to change notification settings - Fork 765
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
fix: Properly translate desiredCapabilities into a command line argument #1337
Conversation
@SrinivasanTarget Could you please rerun the E2E tests? I've just patched the UIA2 driver |
Retriggered now |
@mykola-mokhnach I also recently stumbled across this. With your fix, it seems that no arguments are escaped with I see why a fix was needed, but that makes the situation worse for all windows users using mostly common simple capabilities such as "app" or "udid". Is there any mechanism to work against this problem, without now quoting each arguments I pass to the capabilities. Thanks! |
@root-intruder Maybe there is, but I don't know about it |
@mykola-mokhnach thanks for the answer! How about overloading and then quote everything in java-client/src/main/java/io/appium/java_client/service/local/AppiumServiceBuilder.java Line 299 in bcca202
Then still the user could decide if he want's to quote everything. Alternatively it would also be possible to make quoting everything the default on windows systems and only disable it if the user sets the flag. This way, most win users wouldn't have to escape by hand and special cases like #1336 can still be addressed. Cheers! |
The overload proposal seems reasonable to me. Feel free to create a pull request |
@mykola-mokhnach would you be fine with the described second option: quoting everything on win systems and the user needs to opt out and then manually quote in cases as described in #1336? I'd do a pull request in the next days! |
I would rather stick to the first option, since changing the default behaviour is a breaking change. Clients must explicitly opt in for "automatic" quoting if they want to |
you're absolutely right...didn't think of existing users |
Types of changes
Details
Addresses #1336