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

bug: unknown user ids go through to be mentioned #43

Open
1 task done
thetayloredman opened this issue Jul 23, 2023 · 2 comments
Open
1 task done

bug: unknown user ids go through to be mentioned #43

thetayloredman opened this issue Jul 23, 2023 · 2 comments
Labels
bug Something isn't working good first issue Good for newcomers scope: drql Relating to the Discord Role Query Language - often used with another drql subscope severity: low This bug will not result in any noticeable loss of function

Comments

@thetayloredman
Copy link
Collaborator

Before we begin...

  • I've checked the issue checker and ensured this is not a duplicate

What's your version of Intersection?

Intersection v1.0.0 (git b1bc8e4, dirty source tree), compiled by rustc 1.70.0 (90c541806 2023-05-31) for x86_64-unknown-linux-gnu (debug build) on Sunday, July 23, 2023 1:15 PM (8 minutes ago)

How are you using Intersection?

Locally, for development

Describe the bug you are experiencing.

If you run a query like @{ <@123> } with an invalid user ID or one that is not a member of the current server, it still passes.

Describe the steps needed to reproduce this bug.

Run a query like @{ <@123> } or use a user ID not currently in this server

What did you expect to happen?

An error mentioning the user ID was invalid or not a member of this server

What actually happened?

The query passed:

image

Search Terms

invalid user id

Additional Context

this needs to be fixed within the resolve_user_id resolver by adding an extra validator. we could also choose to validate if an ID has the correct length within the lexer? this might provide a worse error though

@thetayloredman thetayloredman added bug Something isn't working untriaged This issue/PR has not been triaged yet. good first issue Good for newcomers severity: low This bug will not result in any noticeable loss of function scope: drql Relating to the Discord Role Query Language - often used with another drql subscope and removed untriaged This issue/PR has not been triaged yet. labels Jul 23, 2023
@thetayloredman
Copy link
Collaborator Author

Confirmations:

  • Intersection v1.0.0 (git f912721), compiled by rustc 1.70.0 (90c541806 2023-05-31) for x86_64-unknown-linux-gnu (debug build) on Sunday, July 23, 2023 2:50 PM (20 seconds ago)
  • PRODUCTION INSTANCE: Intersection v1.0.0 (git 5a05ca1), compiled by rustc 1.71.0 (8ede3aae2 2023-07-12) for x86_64-unknown-linux-gnu (release build) on Saturday, July 15, 2023 9:25 PM (8 days ago)

@thetayloredman
Copy link
Collaborator Author

could invalid user ids break unionize sets?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers scope: drql Relating to the Discord Role Query Language - often used with another drql subscope severity: low This bug will not result in any noticeable loss of function
Projects
None yet
Development

No branches or pull requests

1 participant