DbxUserFilesRequests#searchV2 fails on Android when query contains > 2 Chinese characters

Open
#560 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
android, java
Domain
mobile-dev

Research direction

Start at DbxUserFilesRequests#searchV2(String query) and trace the query-string processing and encoding used by the Android SDK for /files/search_v2. Reproduce the behavior with the stated SDK 7.0.0 versions and Chinese filenames; done means searches with more than two Chinese characters succeed on Android without regressing shorter queries.

Written by the indexing model from the issue text.

Description

Hey Dropbox Team,

I'm encountering some unexpected behavior when using the Java SDK's files/search_v2 method on the Android platform, specifically with Chinese filenames.

The DbxUserFilesRequests#searchV2(String query) call on Android fails when the query contains more than two Chinese characters. The search succeeds if the query has two or fewer Chinese characters.

Environment

  • SDK: com.dropbox.core:dropbox-core-sdk:7.0.0

  • SDK: com.dropbox.core:dropbox-android-sdk:7.0.0

  • Platform: Android

  • API: /files/search_v2

Could you please take a look at the query string processing and encoding logic for Chinese characters within the Android SDK?

Thank you for your time.

Dominant language
Java
Stars
627
Forks
463
Avg merge
5m
Merged PRs (30d)
10

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dropbox/dropbox-sdk-java

All issues in dropbox/dropbox-sdk-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.