-
Notifications
You must be signed in to change notification settings - Fork 136
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
3.x docker image requires usernames longer than a single character #206
Comments
…upstream docker image Refs apache/couchdb-docker#206
…upstream docker image Refs apache/couchdb-docker#206
…upstream docker image Refs apache/couchdb-docker#206
That line has had https://github.com/apache/couchdb-docker/pull/181/files retained it
What was the last version that you used that worked? |
The last image that worked was 2.3.1, which I don't think had this check. |
Expected Behavior
I expect to be able to set a username via the
COUCHDB_USER
environment variable with a length of 1 character.Current Behavior
Previous versions of the docker image did not have any validation on service start. The current versions fails if the specified
COUCHDB_USER
is a single character.You'll see the following message on container start with a single-character username:
I believe the cause is the
\w+
in the regex check herePossible Solution
I think changing the
\w+
to\w*
will allow the previous behavior.Steps to Reproduce (for bugs)
Here is an example of downstream usage of the image where it just constantly restarts the container (though the error message isn't surfaced as I don't surface that in the tests):
https://github.com/dokku/dokku-couchdb/runs/3578023307?check_suite_focus=true
Context
This breaks my tests, which I try to sync between all datastore plugins. Fixing it just means increasing the username length, but its annoying since now I can't easily copy the files over as tests change.
That said, its not a super-critical bug, just an annoying one.
Your Environment
The text was updated successfully, but these errors were encountered: