Skip to content

🐛 Bug Report: Incorrect ProjectID Instructions #575

@malay5

Description

@malay5

👟 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

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions