microsoft / microsoft/vscode-azurestaticwebapps

The error message is unclear when creating a basic static web app which name is only one letter

Open
#608 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

AT-CTI bug
Dominant language
TypeScript
Stars
99
Forks
39
Avg merge
3d 7h
Merged PRs (30d)
2

Description

OS: Win10
Build Version: 20220123.1
Regression: Not a regression

Repro Steps:

  1. Create a basic static web app with name is only one letter, e.g. "t".
  2. Check whether the error message is clear.

Expect:
The error message is clear.

Actual:
The error message is unclear.
image
Output Details:

6:11:26 PM: Creating resource group "t" in location "Central US"...
6:11:27 PM: Successfully created resource group "t".
6:11:27 PM: Creating new static web app "t"...
6:11:27 PM: Error: "resourceGroupName" with value "t" should satisfy the constraint "Pattern": /^[-\w\._\(\)]+[^\.]$/.

More Info:

  1. This issue also reproduces when creating an advanced static web app with a resource group named only one letter, e.g. "t".
  2. This issue doesn't reproduce when creating an advanced static web app with other resource group, e.g. "test".
  3. Succeed to create a resource group which name is only one letter.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the one-letter static web app and resource group cases described in the issue, then trace the error handling that presents the Azure validation response. Done means the failure explains the naming problem clearly for both basic and advanced static web apps, while valid names continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, typescript, vscode
Domain
cloud, devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.