Bug 1426529

Summary: Attempting to change password produces: Exception encountered, of type "Error"
Product: [Fedora] Fedora Reporter: NickPGSmith <NickPGSmith>
Component: php-oojs-oojs-uiAssignee: Michael Cronenworth <mike>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 25CC: mike, puiterwijk
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: php-oojs-oojs-ui-0.17.10-1.fc25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-07 00:50:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description NickPGSmith@gmail.com 2017-02-24 07:55:12 UTC
Description of problem:
Attempting to change password produces: Exception encountered, of type "Error"

Version-Release number of selected component (if applicable):
Latest (currently) mediawiki (mediawiki-1.27.1-2.fc25) for Fefora 25, with Postegress backend.

How reproducible:
Always

Steps to Reproduce:
1. Install media wiki
2. Go to change password feature of the Admin user created in setup
3. Observe error

Actual results:
Produces: Attempting to change password produces: Exception encountered, of type "Error"

Expected results:
Function should work

Additional info:
By adding:
$wgShowExceptionDetails = true;
in LocalSettings.php, I could see the full error which suggests a missing component:

Exception encountered, of type "Error"
[WK-mcF5y97Ay0nYm@Ktx9AAAAAU] /wiki/index.php/Special:ChangeCredentials/MediaWiki%5CAuth%5CPasswordAuthenticationRequest Error from line 151 of /usr/share/mediawiki/includes/htmlform/HTMLTextField.php: Call to undefined method OOUI\Element::configFromHtmlAttributes()
Backtrace:
#0 /usr/share/mediawiki/includes/htmlform/HTMLFormField.php(573): HTMLTextField->getInputOOUI(string)
#1 /usr/share/mediawiki/includes/htmlform/HTMLForm.php(1502): HTMLFormField->getOOUI(NULL)
#2 /usr/share/mediawiki/includes/htmlform/HTMLForm.php(1162): HTMLForm->displaySection(array, string)
#3 /usr/share/mediawiki/includes/htmlform/OOUIHTMLForm.php(220): HTMLForm->getBody()
#4 /usr/share/mediawiki/includes/htmlform/HTMLForm.php(977): OOUIHTMLForm->getBody()
#5 /usr/share/mediawiki/includes/htmlform/HTMLForm.php(958): HTMLForm->getHTML(boolean)
#6 /usr/share/mediawiki/includes/specialpage/AuthManagerSpecialPage.php(554): HTMLForm->displayForm(boolean)
#7 /usr/share/mediawiki/includes/specials/SpecialChangeCredentials.php(99): AuthManagerSpecialPage->displayForm(boolean)
#8 /usr/share/mediawiki/includes/specialpage/SpecialPage.php(479): SpecialChangeCredentials->execute(string)
#9 /usr/share/mediawiki/includes/specialpage/SpecialPageFactory.php(576): SpecialPage->run(string)
#10 /usr/share/mediawiki/includes/MediaWiki.php(282): SpecialPageFactory::executePath(Title, RequestContext)
#11 /usr/share/mediawiki/includes/MediaWiki.php(745): MediaWiki->performRequest()
#12 /usr/share/mediawiki/includes/MediaWiki.php(519): MediaWiki->main()
#13 /usr/share/mediawiki/index.php(43): MediaWiki->run()
#14 {main}

Comment 1 Michael Cronenworth 2017-02-25 03:40:31 UTC
Thanks for the debug output. The issue is that Fedora's OOUI library is not in sync with what Mediawiki 1.27 wants. I'll push an update.

Comment 2 Fedora Update System 2017-02-25 03:52:59 UTC
php-oojs-oojs-ui-0.17.10-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-1fc8246364

Comment 3 Fedora Update System 2017-02-26 05:26:17 UTC
php-oojs-oojs-ui-0.17.10-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-1fc8246364

Comment 4 Fedora Update System 2017-03-07 00:50:21 UTC
php-oojs-oojs-ui-0.17.10-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.