GithubHelp home page GithubHelp logo

Comments (10)

stnguyen90 avatar stnguyen90 commented on July 24, 2024 1

@BlackyWolf, it would definitely be cleaner if we don't add the Console user's ID to the permissions so I'll leave this open to address that.

That said, it shouldn't have much of an impact as without that added permission, no one would have access to the file (assuming they're not granted access at the bucket level).

from appwrite.

stnguyen90 avatar stnguyen90 commented on July 24, 2024

@BlackyWolf, thanks for creating this issue! 🙏🏼 What you're describing seems like the expected behavior as described by our docs:

If you create a resource using a Client SDK without explicit permissions, the creator will be granted read, update, and delete permissions on that resource by default.

If you don't want to grant the user permissions, you may pass an empty array.

Is there anything else you need or can this be closed?

from appwrite.

BlackyWolf avatar BlackyWolf commented on July 24, 2024

I apologize for not being clear. I am manually uploading a file using the cloud.appwrite.io UI and it is being assigned a specific user's permissions from when I uploaded a file using a local react app. When I upload the file through the cloud admin UI I leave the permissions blank, so I'm trying to figure out how permissions are getting assigned.

from appwrite.

stnguyen90 avatar stnguyen90 commented on July 24, 2024

@BlackyWolf, are you using the same ID for both cases?

from appwrite.

BlackyWolf avatar BlackyWolf commented on July 24, 2024

When I upload the file to the bucket from the local react app, I use the currently logged in user's ID.
When I log into the cloud.appwrite.io admin portal to upload the file, I leave the permissions blank and don't assign any ID.

If it's easier to show, I can record a screen capture of the process.

from appwrite.

BlackyWolf avatar BlackyWolf commented on July 24, 2024

Here's the screen capture:

appwrite_cloud_1.5.7_bucket_upload_bug.mp4

from appwrite.

stnguyen90 avatar stnguyen90 commented on July 24, 2024

@BlackyWolf, I'm pretty sure that's the ID of your Console account user since that's the user that created the file.

from appwrite.

BlackyWolf avatar BlackyWolf commented on July 24, 2024

Ah, I see. I was able to confirm this on a separate project. Is there any way to prevent this without having to disable file security? My expectation was manipulating data by going through the cloud admin console would not affect permissions on said data by automatically applying permissions.

If not, since this is expected behavior, please feel free to close the issue.

from appwrite.

Souptik2001 avatar Souptik2001 commented on July 24, 2024

Hey @stnguyen90 I can take a shot at this.

from appwrite.

Souptik2001 avatar Souptik2001 commented on July 24, 2024

I already raised a PR, as this issue was abandoned for a long time. 😅

from appwrite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.