Developer namespaces have a 20 character limit

Bug #1678958 reported by Evan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snap Store Server
Fix Released
Medium
Natalia Bidart

Bug Description

Developer namespaces have a 20 character limit, but SSO usernames, which are intended to ultimately replace developer namespaces, have no such restriction. GitHub has a maximum username length of 39 characters, which causes explosions when they go through SSO/store account creation.

Please increase or drop this character limit on developer namespaces.

Changed in snapstore:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Natalia Bidart (nataliabidart)
Revision history for this message
Natalia Bidart (nataliabidart) wrote :

We can definitely increase to 30 which is the max_length we can allow respecting the Django's User model restriction (for the Django version we are using right now) as a first measure.

As soon as we migrate to a newer Django, we can lift this restriction even further to 150, see https://code.djangoproject.com/ticket/20846.

Changed in snapstore:
status: Confirmed → In Progress
Revision history for this message
Evan (ev) wrote :

I don't think you disagree, but just so we're clearly on the same page: increasing to 30 does not fix this issue.

It looks like it's entirely possible to support more than 30 characters in Django 1.5+
https://docs.djangoproject.com/en/dev/releases/1.5/#configurable-user-model

Is there a reason you can't use a custom User model?

Revision history for this message
Natalia Bidart (nataliabidart) wrote :

We have rolled out Django 1.11 to the Store, so the username limit should be now lifted. I've tried to QA via BSI but I couldn't complete the steps, see the issue reported there for more information:

https://github.com/canonical-ols/build.snapcraft.io/issues/792

Revision history for this message
Natalia Bidart (nataliabidart) wrote :

While doing QA, I found a minor issue in the store end which is now on its way to staging and prod.

Changed in snapstore:
status: In Progress → Fix Committed
Changed in snapstore:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.