Skip to content

Fix the second argument type for pushFile #812

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

Merged
merged 6 commits into from
Jan 20, 2018

Conversation

mykola-mokhnach
Copy link
Contributor

Change list

Fixes the second argument type for pushFile endpoint. Appium expects it to be base64-encoded string, but we send array of bytes instead.

Types of changes

  • No changes in production code.
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Details

See appium/appium-xcuitest-driver#605

@appium appium deleted a comment Jan 17, 2018
Object[] values = new Object[] {remotePath, base64Data};
String data;
try {
data = new String(base64Data, "UTF-8");
Copy link
Collaborator

Choose a reason for hiding this comment

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

import java.nio.charset.StandardCharsets;
...
data = new String(base64Data, StandardCharsets.UTF_8)

?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

np

@appium appium deleted a comment Jan 17, 2018
@TikhomirovSergey TikhomirovSergey merged commit 6d49209 into appium:master Jan 20, 2018
TikhomirovSergey added a commit that referenced this pull request Jan 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants