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

馃悰 Bug Report: Creating team membership with wrong role name "ownwer" and trying to delete team from web sdk with role "owner" throw 500 #4572

Open
2 tasks done
Lalrinawma opened this issue Oct 25, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@Lalrinawma
Copy link

Lalrinawma commented Oct 25, 2022

馃憻 Reproduction steps

I create teamMerbership with wrong role name "ownwer" instead of "owner" then trying to delete with owner role throw 500 and members cant be seen from Appwrite administrator page.

馃憤 Expected behavior

it should throw more helpful error message

馃憥 Actual Behavior

it does not throw any helpful error message

馃幉 Appwrite version

Version 1.0.x

馃捇 Operating system

Linux

馃П Your Environment

No response

馃憖 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?

Docker log:
[Error] Timestamp: 2022-10-25T05:19:13+00:00
[Error] Method: GET
[Error] URL: /v1/databases/:databaseId/collections/:collectionId/documents
[Error] Type: Appwrite\Extend\Exception
[Error] Message: Query not valid: Query type does not match expected: datetime
[Error] File: /usr/src/code/app/controllers/api/databases.php
[Error] Line: 2012
[Error] Timestamp: 2022-10-25T05:27:54+00:00
[Error] Method: DELETE
[Error] URL: /v1/teams/:teamId
[Error] Type: Utopia\Database\Exception\Authorization
[Error] Message: Missing "delete" permission for role "team:63576d63f05eeb27498a/owner". Only "["any","users","user:zuala","user:zuala/unverified","users/unverified","team:organizationAdmins","member:635226e7e15f2b02412b","team:organizationAdmins/admins","team:organizationAdmins/members","team:635226e4c7eae469f187","member:635226ec242984b96463","team:635226e4c7eae469f187/admins","team:635226e4c7eae469f187/members","team:635264ece7c14c0e85ee","member:6352656e860f46435cd7","team:635264ece7c14c0e85ee/admins","team:635264ece7c14c0e85ee/members","team:tlangau","member:635284f6ece92bfd0665","team:tlangau/admins","team:tlangau/members","team:63563efe52712547e7b1","member:63564425593b11e0dcf1","team:63563efe52712547e7b1/admins","team:63563efe52712547e7b1/members","team:635652d3dabae466f014","member:635652d6f0d7ffd93f79","team:635652d3dabae466f014/admins","team:635652d3dabae466f014/announcers","team:63576d63f05eeb27498a","member:63576d64408b72c4f140","team:63576d63f05eeb27498a/admins","team:63576d63f05eeb27498a/ownwer"]" scopes are allowed and "["team:63576d63f05eeb27498a/owner"]" was given.

@Lalrinawma Lalrinawma added the bug Something isn't working label Oct 25, 2022
@joeyouss
Copy link

Hi @Lalrinawma , checking in to know if this is fixed? since it is an old issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants