Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

CreationFlow does not validate name passed in via URL params #4441

@tonyanziano

Description

@tonyanziano

Describe the bug

Navigating to the creation wizard with a url such as:

http://localhost:3000/projects/create/<template>?name=somename

will cause the name field to be prepopulated with somename from the URL params.

However, the filename validation does not run in this scenario until you start typing something, so this initial value never gets validated and can result in trying to create a duplicate bot project.

Version

main as of 10/20/2020

Browser

  • Electron distribution
  • Chrome
  • Safari
  • Firefox
  • Edge

OS

  • macOS
  • Windows
  • Ubuntu

To Reproduce

Steps to reproduce the behavior:

  1. Open Dev Tools
  2. enter into console: location.href ="http://localhost:3000/projects/create/<template-name>?name=<duplicate-bot-name>"
  3. Observer no duplicate error

Expected behavior

The initial value from the URL params should be validated when the field is populated.

Screenshots

image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions