question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Underscore _ in project name must be escaped before deploying

See original GitHub issue

Bug Report

Current Behavior

When you create a project with underscore boost new:project project_name , you create the project files and then you boost deploy -e production, aws displays this error related to the project name:

Error [ValidationError]: 1 validation error detected: Value 'project_name-toolkit' at 'stackName' failed to satisfy constraint: Member must satisfy regular expression pattern: [a-zA-Z][-a-zA-Z0-9]*|arn:[-a-zA-Z0-9:/._+]*

. The thing is that underscores are not allowed in the project name.

Expected behavior

We should make boost new:project to convert _ into -. Apart from that, boost deploy should validate this too.

Possible Solution

  • convert _ into - in the given project name on boost new:project
  • Add a validation layer invoked by boost deploy (and in the future by boost status)

Additional information

Environment

  • Booster version: [e.g. 0.8.2]
  • Node/npm version: [e.g. Node 8/npm 5]
  • OS: [e.g. OSX 10.13.4, Windows 10]

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
rijusougata13commented, Jan 21, 2021

can you assign me in this issue.? i want to work on it

0reactions
davidverducommented, Feb 2, 2021

@alvaroloes this fix is not complete and hasn’t be applied to the version v0.11.2

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't deploy project on Vercel due to name error
The name contains invalid characters. Only letters, digits, and underscores are allowed. Furthermore, the name should start with a letter.
Read more >
underscores being removed in a project name #2923 - GitHub
Is there particular need to remove underscores in a project name? Having direct mapping of project name to internal docker compose naming ...
Read more >
Errors using special characters in Access databases - Office
Lists the special characters to avoid using when you work with the database object names or the field names in all versions of...
Read more >
10.1. Preventing Cross Site Scripting Vulnerabilities
Do not store escaped data. Again, because you do not know ahead of time all the places that the data will be used,...
Read more >
Why do people suggest using dashes but not underscores in ...
A space is “arduous” when navigating with a CLI, you have to “escape” your space or use quotes. This creates a longer file...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found