Skip to content
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

GetFileAsync with special characters not working #816

Open
pabloleban opened this issue Oct 10, 2020 · 3 comments
Open

GetFileAsync with special characters not working #816

pabloleban opened this issue Oct 10, 2020 · 3 comments

Comments

@pabloleban
Copy link

pabloleban commented Oct 10, 2020

[REQUIRED] Please fill in the following fields:

  • Unity editor version: 2020.1.8f1
  • Firebase Unity SDK version: 6.16
  • Source you installed the SDK: Unity Package Manager
  • Problematic Firebase Component: Storage
  • Other Firebase Components in use: Auth
  • Additional SDKs you are using: Discord SDK, Steamworks API
  • Platform you are using the Unity editor on: Windows
  • Platform you are targeting: iOS, Android, and desktop
  • Scripting Runtime: IL2CPP

[REQUIRED] Please describe the issue here:

(Please list the full steps to reproduce the issue. Include device logs, Unity logs, and stack traces if available.)

Steps to reproduce:

Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)? Yes.
What's the issue repro rate? 100%

What happened? How can we make the problem occur?
When doing GetFileAsync() to a path that contains Cylliric characters, the file is never downloaded and the tasks gives a success result with no exceptions.

storageRef.GetFileAsync("file://C:/Users/Admin/AppData/LocalLow/My Folder/Normal name/mydownloadedfile.asd"); // - Works fine
storageRef.GetFileAsync("file://C:/Users/Admin/AppData/LocalLow/My Folder/Александр/mydownloadedfile.asd"); // - Doesn't download the file

If you have a downloadable sample project that reproduces the bug you're reporting, you will
likely receive a faster response on your issue.

@pabloleban pabloleban added the new New issue. label Oct 10, 2020
@pabloleban pabloleban changed the title GetFileAsync and special characters GetFileAsync with special characters not working Oct 10, 2020
@pabloleban
Copy link
Author

pabloleban commented Oct 15, 2020

As a workaround, I've ended up using GetBytesAsync() and implementing my own file creation using System.IO.

@chkuang-g
Copy link
Contributor

Hi @pabloleban

This looks like a bug. Does this only happen to desktop build/Unity editor, or is it happening to iOS and Android build as well?

Shawn

@chkuang-g chkuang-g added needs-info Need information for the developer type: bug and removed new New issue. labels Oct 15, 2020
@pabloleban
Copy link
Author

I haven't tested on Android nor iOS because the game uses the Persistent Data Path which is where the file is stored. On Android and iOS that path will never have cylliric characters, however some people on PC use to put their names on the Windows account, resulting in a user path of C:\Users\Александр\AppData\LocalLow\etc.. and the SDK seems to be unable to place the file there because of that.

@google-oss-bot google-oss-bot added needs-attention Need Googler's attention and removed needs-info Need information for the developer labels Oct 19, 2020
@chkuang-g chkuang-g removed the needs-attention Need Googler's attention label Oct 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants