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
Sanitize Site Names #86
Comments
Mostly we should be able to handle the vast majority of characters, anything that's utf-8. Except what's not allowed in a domain name right? It looks like the old ascii rules are in http://www.ietf.org/rfc/rfc1034.txt So we probably just have to choose a strategy and then normalize for it. IMO forcing ascii would be OK. |
Looks like we're proceeding on this. Removing the "needs decision" blocker and adding flags for tests. Not sure documentation is necessary if we end up prompting the user that we only support alphanumeric + dash character as input! |
This tripped me up. I was reviewing https://github.com/drud/ddev/pull/712/files#diff-0c9a20c1c50fca454d4715bf175e38bdR135 and I tried to pass in the project name "test^☃site" (because honestly, who doesn't want to have a snowman domain name). It broke when running |
Updated the milestone to reflect when this was officially released. |
We need to solve this bug. It trips people from time to time. |
What happened:
I created a site with sitename with a suspected invalid character. When I attempted to take the site through the workflow, the site spin-up failed with an Exit code 1.
What you expected to happen:
I expected the site to come up all the way.
How to reproduce it (as minimally and precisely as possible):
Create a folder with an invalid site name and use it as the default site name or just run
ddev config
and try plugging in a site name with invalid characterts.Anything else do we need to know:
People might have folder names that we have to sanitize (e.g. they interact with their folders through Finder and use invalid characters in the folder name. In general, the sitename input should be sanitized.
Related source links or issues:
Console Output
The text was updated successfully, but these errors were encountered: