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 Report: Incorrect ProjectID Instructions #6467

Closed
2 tasks done
malay5 opened this issue Oct 3, 2023 · 2 comments
Closed
2 tasks done

🐛 Bug Report: Incorrect ProjectID Instructions #6467

malay5 opened this issue Oct 3, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@malay5
Copy link

malay5 commented Oct 3, 2023

👟 Reproduction steps

  1. Navigate to the Appwrite dashboard.
  2. Create a new project.
  3. Enter a project ID containing alpha numeric characters, non-leading hyphens, periods, and underscores (example project_1).
  4. Observe the error or unexpected behavior.

2023-10-04 04_09_52-Onboarding - Appwrite

👍 Expected behavior

From the code in

appwrite\src\Appwrite\Utopia\Database\Validator\ProjectId.php

2023-10-04 04_11_58-ProjectId php - hacktoberfest 2023 - Visual Studio Code

It can be seen that the regex doesn't accept underscores as well as leading hyphens and periods in projectID.

The error message provided, also has a slight correction, that it only accepts non-leading hyphens.

Thus, the expected behavior, would be, the following:

2023-10-04 04_19_43-Onboarding - Appwrite

👎 Actual Behavior

It currently shows wrong statement, that it accepts underscores as well as periods

2023-10-04 04_09_52-Onboarding - Appwrite

This causes confusion among people, not sure what they did wrong, as they were correctly following the instructions

🎲 Appwrite version

Appwrite Cloud

💻 Operating system

Windows

🧱 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?

@malay5 malay5 added the bug Something isn't working label Oct 3, 2023
@malay5
Copy link
Author

malay5 commented Oct 3, 2023

Can you please assign this issue to me

@stnguyen90
Copy link
Contributor

Duplicate of #6279

@stnguyen90 stnguyen90 marked this as a duplicate of #6279 Oct 4, 2023
@stnguyen90 stnguyen90 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 4, 2023
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