temporary course name during unarchiving process can be to long

Aperta
#2,417 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
40/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
perl
Ambito
backend

Direzione di ricerca

The bug is that the temporary course name foo_tmp used during unarchiving exceeds the 40-character limit. Search the Perl course-management code for where the _tmp suffix is appended during unarchive, and for the 40-character name validation. Reproduce by archiving a course whose name is 37+ characters and unarchiving it under a new short name. Done when unarchiving succeeds for that case. Check with maintainers first, since the issue has had no reply for about 876 days.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Perl
Stelle
164
Fork
167
Merge medio
6g 7h
PR unite (30g)
27

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di openwebwork/webwork2

Tutte le issue di openwebwork/webwork2

Issue simili

Altre issue su Perl

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.