Bug 1011850 - Weak password message looks weird when clicking “Done” once: “You have provided a weak password: None. Press done to use anyway”
Summary: Weak password message looks weird when clicking “Done” once: “You have provid...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Shea
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-25 08:55 UTC by Mike FABIAN
Modified: 2013-10-04 01:54 UTC (History)
7 users (show)

Fixed In Version: anaconda-20.21-1.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-04 01:54:56 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
password-weak-none-error-message.png (129.86 KB, image/png)
2013-09-25 08:55 UTC, Mike FABIAN
no flags Details

Description Mike FABIAN 2013-09-25 08:55:43 UTC
Created attachment 802662 [details]
password-weak-none-error-message.png

When installing Fedora 20 Alpha (release), when the installation
is running, one can add a user (and/or set the root password).

When entering a weak password and clicking “Done” once, one sees
the message:

    “You have provided a weak password: None. Press done to use anyway”

The “None.” looks quite weird to me.

Looking at the python code:

    user.py line 546:
    
            if pwstrength < 2:
                # If Done has been clicked twice, waive the check
                if self._waivePasswordClicks > 1:
                    return None
                elif self._waivePasswordClicks == 1:
                    return _("You have provided a weak password: %s. "
                            " Press Done again to use anyway.") % self._pwq_error
                else:
                    error = _("The password you have provided is weak")
                    if self._pwq_error:
                        error += ": %s. " % self._pwq_error
                    else:
                        error += ". "
                    error += _("You will have to press Done twice to confirm it.")
                    return error

it seems that self._pwq_error is “None”, which probably means that there was
no error. But displaying that Python value “None” to the user seems useless and
confusing.

Comment 1 Fedora Update System 2013-09-28 01:15:42 UTC
anaconda-20.21-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/anaconda-20.21-1.fc20

Comment 2 Fedora Update System 2013-09-29 01:44:52 UTC
Package anaconda-20.21-1.fc20, pykickstart-1.99.41-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing anaconda-20.21-1.fc20 pykickstart-1.99.41-1.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-17921/pykickstart-1.99.41-1.fc20,anaconda-20.21-1.fc20
then log in and leave karma (feedback).

Comment 3 Fedora Update System 2013-10-04 01:54:56 UTC
anaconda-20.21-1.fc20, pykickstart-1.99.41-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.