View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0012705 | mantisbt | authentication | public | 2011-01-20 07:10 | 2011-08-05 02:41 |
Reporter | Gerrit | Assigned To | atrol | ||
Priority | normal | Severity | block | Reproducibility | always |
Status | closed | Resolution | duplicate | ||
Product Version | 1.2.4 | ||||
Summary | 0012705: Login page hang. Crypt crash. | ||||
Description | The login page will remain hanging indefinitely under circumstances. This happens when the login page script tries to check for security threats. When it checks the admnistrator account for password it will call the crypt method with a certain salt on the second login method try. This crypt method can crash on PHP versions 5.3.1 and 5.3.2 compiled as threadsafe Apache 2 modules and block the server thread. Behaviour with not thread safe versions unknown. Type of session storage relevant. With PHP file storage of sessions on Windows the next call to the login_page will hang immediately on sessions_start invocation, probably because the session file is locked by a hanging server thread. Working with XAMPP 1.7.3 platform and PHP version 5.3.1. Crypt is called in core within authentication_api.php inside function auth_process_plain_password(...). It is also called in library within adodb\session\adodb-session.php and adodb\session\adodb-session2.php and adodb\session\old\adodb-cryptsession.php. | ||||
Tags | No tags attached. | ||||
Bug involved is discussed at: and http://stackoverflow.com/questions/2699629/did-i-find-a-bug-in-phps-crypt Probably fixed from PHP 5.3.3 but have not confirmed. Mcrypt method could be alternative or crypt could be replaced only for 5.3.1 and 5.3.2. This could be included in the php_api.php for compatibility. |
|
For a workaround see |
|
If the code is not going to be changed, may I suggest to adopt this info into the administration manual. http://docs.mantisbt.org/master/en/administration_guide.html#ADMIN.ABOUT.REQUIRMENTS It seems a little behind on the PHP versions and this issue has taken me several hours to get to the cause and work around it. You can't say that it runs on all versions after 5.2 with this issue lying around. Having a compatibility table in the guide could save people a lot of time when they are installing and making it a smoother experience. And I actually did read the guide before installing. PHP 5.3.1 and 5.3.2 should be struck for Mantis. Regards, |
|
Thanks for the solution. It caused me several hours of work. I have PHP 5.3.1. on Apache2.2.14 (XAMMP 1.73 on windows server 2003) and Mantis 1.2.4. Commenting out CRYPT works so far. I don't think this issue should be considered as resolved. First of all you do not replace PHP on a running server. Second, if the fix is really this simple, the array $t_login_methods filled with constants could easily have been defined as a global constant in config_inc.php. Put a few remarks in the manual (and default config file) about the PHP version that causes problems with CRYPT and everybody is happy! |
|
Version 1.3.x of MantisBT will check that at least PHP 5.3.2 is installed |
|
Please be advised. The crypt bug was only fixed from PHP version 5.3.3. |
|
I had an internal discussion with user dhx because I want the check for 5.3.3 I hope that there will be an update of PHP in RHEL 6, so we can check against 5.3.3 |
|
Dear developers: |
|
See http://php.net/ChangeLog-5.php |
|