Can't create or start a workspace after creating account using GitHub OAuth
See original GitHub issueI’m a new user. When I signed up, I used the “Log in with github” feature. I got an email from Codenvy saying my username is “github1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192”. That’s not a very useful username, but I can’t find any place to change it.
Now, every time I try to create a workspace, I get an error message saying, Error response from docker API, status: 500, message: Error response from daemon: repository name must not be more than 255 characters
. The username is only 181 characters, but I suspect that it’s used as part of the repository name, and is making it too long.
The relevant code appears to be here.
I suspect that for some reason it tried to assign me the username “github”, and when that was taken, it then for some other reason kept appending instead of replacing integers until it found an available name… in which case you should find find 91 other Codenvy users called “github”, “github1”, “github12”, “github123”, and so on… 😃
Which begs the question, why was it trying to assign me the username “github” in the first place? The email address I use for my github login is “github@…”, so perhaps it automatically uses the first part of the email address as the username? If so, than if I were, say, “bob@…” or any other common email prefix, I probably would have the same problem.
It seems like it’s important to let users change their usernames, or at least to choose one at sign-up - even if the keep-appending-numbers bug is fixed, I don’t see why users should get stuck with automatically appended numbers at all.
Reproduction Steps:
- Create an account using Github oauth.
- Click “Create Workspace” on the dashboard.
- Create a new Workspace from any stack.
- Click “Create.”
- Get error message.
Codenvy version: 5.11.2
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
i think it reasonable to move UserID and environment name and forthcoming organization names to container’s label. So image name would contain only WorkspaceID and MachineID and thus not cause problems with creating images, WDYT?
Labeling this as a bug
You may delete this account and register with email, and then associate your github account with a newly created Codenvy account.