Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix the second argument type for pushFile#812

Merged
TikhomirovSergey merged 6 commits intoappium:masterappium/java-client:masterfrom
mykola-mokhnach:push_filemykola-mokhnach/java-client:push_fileCopy head branch name to clipboard
Jan 20, 2018
Merged

Fix the second argument type for pushFile#812
TikhomirovSergey merged 6 commits intoappium:masterappium/java-client:masterfrom
mykola-mokhnach:push_filemykola-mokhnach/java-client:push_fileCopy head branch name to clipboard

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.