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

Project Key param does not support 2 characters as mentioned in the docs and the UI #103

Closed
jan-huso opened this issue Mar 8, 2024 · 2 comments · Fixed by #105
Closed
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@jan-huso
Copy link

jan-huso commented Mar 8, 2024

Describe the bug
When trying to add a project with two letters ("da" in this case) the provider gives an error that the key must be 3 - 6 lowercase letters. The documentation states it can be 2 - 20 lowercase letters and the UI states it can be 2 - 32 lowercase letters.

Provider Error:

│ Error: invalid value for key (key must be 3 - 6 lowercase alphanumeric characters)

│ with module.artifactory_projects["da.yml"].project.project,
│ on modules/artifactoryProject/main.tf line 2, in resource "project" "project":
│ 2: key = var.delivery

Documentation:
key (String) The Project Key is added as a prefix to resources created within a Project. This field is mandatory and supports only 2 - 20 lowercase alphanumeric and hyphen characters. Must begin with a letter. For example: us1a-test.

UI:
The Project Key is added as a prefix to resources created within a Project
This field is mandatory and supports only
2 - 32 lowercase alphanumeric characters.
Must begin with a letter.
For example: us1a.

Expected behavior
The Provider should let me create or import a project with 2 lowercase letters

@jan-huso jan-huso added the bug Something isn't working label Mar 8, 2024
@jan-huso jan-huso closed this as completed Mar 8, 2024
@alexhung
Copy link
Member

alexhung commented Mar 8, 2024

@jan-huso Thanks for the report. I'll update the documentation to match the validation logic.

@alexhung alexhung added documentation Improvements or additions to documentation and removed bug Something isn't working labels Mar 8, 2024
@alexhung alexhung reopened this Mar 8, 2024
@jan-huso
Copy link
Author

Thank you!
The provider error was related to me using an old version, with the latest there was no problem creating a project with 2 characters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants