https://bugzilla.wikimedia.org/show_bug.cgi?id=60807

       Web browser: ---
            Bug ID: 60807
           Summary: Tab character in course title causes an error
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Keywords: easy
          Severity: normal
          Priority: Unprioritized
         Component: EducationProgram
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: rages...@gmail.com
                CC: andrew.green...@gmail.com, rages...@gmail.com
    Classification: Unclassified
   Mobile Platform: ---

If you try to create a course that includes a tab in the title (which does not
get rendered), you will be able to reach the 'create course' interface, but
upon trying to save the page, you get an error, like this:

[3ae24f00]
/w/index.php?title=Education_Program:NoDelete/Errorwat_(now)&action=edit
Exception from line 68 of
/vagrant/mediawiki/extensions/EducationProgram/includes/rows/PageObject.php:
The title for a PageObject needs to be valid when saving.

Backtrace:

#0
/vagrant/mediawiki/extensions/EducationProgram/includes/rows/Course.php(313):
EducationProgram\PageObject->save(NULL)
#1
/vagrant/mediawiki/extensions/EducationProgram/includes/rows/RevisionedObject.php(263):
EducationProgram\Course->save()
#2
/vagrant/mediawiki/extensions/EducationProgram/includes/actions/EditAction.php(466):
EducationProgram\RevisionedObject->revisionedSave(EducationProgram\RevisionAction)
#3 [internal function]: EducationProgram\EditAction->handleSubmission(array,
EducationProgram\FailForm)
#4 /vagrant/mediawiki/includes/htmlform/HTMLForm.php(443):
call_user_func(array, array, EducationProgram\FailForm)
#5 /vagrant/mediawiki/includes/htmlform/HTMLForm.php(385):
HTMLForm->trySubmit()
#6 /vagrant/mediawiki/includes/htmlform/HTMLForm.php(400):
HTMLForm->tryAuthorizedSubmit()
#7
/vagrant/mediawiki/extensions/EducationProgram/includes/actions/EditAction.php(188):
HTMLForm->show()
#8
/vagrant/mediawiki/extensions/EducationProgram/includes/actions/EditAction.php(64):
EducationProgram\EditAction->showForm()
#9
/vagrant/mediawiki/extensions/EducationProgram/includes/actions/EditCourseAction.php(94):
EducationProgram\EditAction->onView()
#10 /vagrant/mediawiki/includes/Action.php(567):
EducationProgram\EditCourseAction->onView()
#11 /vagrant/mediawiki/includes/Wiki.php(428): FormlessAction->show()
#12 /vagrant/mediawiki/includes/Wiki.php(292):
MediaWiki->performAction(EducationProgram\CoursePage, Title)
#13 /vagrant/mediawiki/includes/Wiki.php(586): MediaWiki->performRequest()
#14 /vagrant/mediawiki/includes/Wiki.php(447): MediaWiki->main()
#15 /vagrant/mediawiki/index.php(49): MediaWiki->run()
#16 {main}

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to