Skip to content
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

temporary course name during unarchiving process can be to long #2417

Open
Alex-Jordan opened this issue May 12, 2024 · 1 comment
Open

temporary course name during unarchiving process can be to long #2417

Alex-Jordan opened this issue May 12, 2024 · 1 comment

Comments

@Alex-Jordan
Copy link
Contributor

A course name cannot be more than 40 characters long. Now suppose you have a course with name foo except that is 37 or more characters long, and you archive it (leaving the original course in place).

Then you try to unarchive the archive, but give it a new name that is under 40 characters long. The way this is done right now, WW temporarily works with a course name that is foo_tmp, which is longer than 40 characters long. So even though your proposed new name for the new course would be under 40 characters long, the foo_tmp name triggers an error about a course name being too long.

@Alex-Jordan
Copy link
Contributor Author

I got around this by temporarily renaming the original course (which was still live) to something short. Then I archived it and created the new course with a new name using the short-named archive. And then returned the original course to its original name. So for a minute or so the original course was not accessible.

I couldn't find another workaround. You can't simply rename a course archive file and expect that it will unarchive to a course with a name based on how you renamed the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant