Skip to content

Storage bucket returns 404 "bucket not found" with session client despite correct permissions (v1.8.1) #11335

@sc00

Description

@sc00

👟 Reproduction steps

When using a session client (authenticated user) to access a storage bucket with appropriate permissions, Appwrite returns a 404 error claiming the bucket cannot be found. The same operation works correctly when using an admin client.

  1. Create a storage bucket with the following configuration:
    Bucket permissions: Role "any" with full CRUD enabled
    File Security: Disabled (also tested with enabled + file-level "any" permissions)
  2. Create an authenticated session using the node-appwrite SDK
  3. Attempt to access a file using the session client
storage.getFile({ bucketId, fileId })

👍 Expected behavior

Expected to get the file.

👎 Actual Behavior

Got an error:

AppwriteException: Storage bucket with the requested ID could not be found.
code: 404
type: 'storage_bucket_not_found'

🎲 Appwrite version

Version 1.8.x

💻 Operating system

Something else

🧱 Your Environment

Appwrite v1.8.1, "node-appwrite": "^20.2.1"

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

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

Labels

product / self-hostedIssues only found when self-hosting Appwriteproduct / storageFixes and upgrades for the Appwrite Storage.questionFurther information is requested

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions