-
Notifications
You must be signed in to change notification settings - Fork 446
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
Long URLs can cause the launch command to crash #1144
Comments
Before this, building organizations with longer URLs failed since the name field inside Site model has a max_length=50 Close overhangio#1144
How so? It seems very weird. |
It's not weird at all; the name is only set when the Site object is created. tutor/tutor/templates/build/openedx/bin/site-configuration Lines 62 to 64 in 97e9fa4
On the first attempt, it reaches this block, but subsequent tries only access the site by domain. |
I encounter this issue while creating an organization with a long URL. Django's Site model has a 50 character limit for it's
name
field and creating a new Site Configuration in tutor-discovery jobs, the job will fail on long URLs.The fun part is that running
launch
command for the second time doesn't raise the issue.I believe changing
tutor/tutor/templates/build/openedx/bin/site-configuration
Lines 63 to 64 in 97e9fa4
should do the trick.
OS: Ubuntu 22.04
tutor: 17.0.6
tutor-discovery: 17.0.1
The text was updated successfully, but these errors were encountered: