Closed (fixed)
Project:
OpenPublic
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Mar 2011 at 16:39 UTC
Updated:
25 Aug 2011 at 15:32 UTC
Jump to comment: Most recent file
Not sure if the title is proper, but Open Public will fail an install if the random password generated with provision_password() doesn't contain at least a capital letter, lowercase letter, and a number.
While this is a specific issue with OpenPublic's password requirements, I don't see the harm in updating the password function to always produce a password to meet more stringent requirements.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | openpublic.patch | 567 bytes | memtkmcc |
Comments
Comment #1
cashwilliams commentedI guess that should be for any distribution that uses the password policy module.
Comment #2
cashwilliams commentedI'm not sure if Aegir uses provision_password(), or user_password().
Comment #3
omega8cc commentedNot sure it is a problem? At least I never had any issue with provisioning Open Public sites. How you found it to be a problem?
Comment #4
anarcat commentedaegir's provision_password() is the same as user_passwd() as things stand, so I would file this bug upstream.
in the meantime, i guess we could enhance the function... but it looks to me like the probability of generating a password that *doesn't* have a capital or a digit is actually quite low...
http://drupalcode.org/project/provision.git/blob/HEAD:/provision.inc#l256
Comment #5
cashwilliams commentedNot sure if this is even a bug with Aegir/Drupal, but with Open Public? I suppose the argument can be made that Open Public doesn't support automated installs, and therefore the problem is on their end?
(Only reason I noticed this is because it failed on me the first time I tried to install it. Doesn't happen often, but it does happen :D
Comment #6
anarcat commentedOkay, well I think then that we could enhance our password generation algorithm, but frankly this is getting rather complex for a fairly simple thing to do, that has been done over and over again all over the place. :P I strongly encourage you to file a similar bug in D8 right now - but in the mean time i'll make this a feature request, as it's not really a bug, I believe.
Comment #7
omega8cc commentedJust to confirm that I also reproduced the issue, a few times already :/
But really, it is an upstream issue/compatibility problem, I think.
They should test their distro with Aegir! :)
Comment #8
memtkmcc commentedHere is the patch (attached) to fix this in the Open Public install profile.
I'm moving this issue to the Open Public queue as it belongs there, IMO.
Comment #9
jec006 commentedHey Octopus,
Thanks for the patch, I've committed it and the fix will be in the next release of openpublic.
Appreciate the work.