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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storage returns blue box on empty String #1618

Open
s3ppo opened this issue Sep 11, 2021 · 1 comment
Open

Storage returns blue box on empty String #1618

s3ppo opened this issue Sep 11, 2021 · 1 comment
Labels
bug Something isn't working product / storage Fixes and upgrades for the Appwrite Storage.

Comments

@s3ppo
Copy link

s3ppo commented Sep 11, 2021

馃悰 Bug Report

Storage returns blue box on query empty String

https://mydomain/v1/storage/files//preview?project=myprojectid&mode=admin
this returns a filelist instead of an error (after files there is an empty fileid)

Have you spent some time to check if this issue has been raised before?

Yes

To Reproduce

example from Flutter:

String fileid = "";
Response result = await storage.getFilePreview(fileId: fileid, height: 100, width: 100);
print(result.data.isEmpty); //false

Expected behavior

Should return an exception or minimum an empty Uint8List.

Actual Behavior

returns an Uint8List with data (a blue box)

Your Environment

Appwrite 0.10.2

@s3ppo s3ppo added the bug Something isn't working label Sep 11, 2021
@ditsuke
Copy link

ditsuke commented Oct 24, 2021

I want to give fixing this a go! As I'm new to Appwrite and don't want to rush into it, if a maintainer can confirm this is not expected behavior and probably give me a pointer I'll start working on a fix.

@stnguyen90 stnguyen90 added the product / storage Fixes and upgrades for the Appwrite Storage. label Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working product / storage Fixes and upgrades for the Appwrite Storage.
Projects
None yet
Development

No branches or pull requests

3 participants