Menu

#4295 Problem when session expires while importing file

4.1.8
out-of-date
None
7
2015-01-02
2014-02-24
azurIt
No

Importing of a large database can takes long enough to reach LoginCookieValidity. When this happens, phpMyAdmin is stucked on 'file processing' in 'import_status.php' here:

while ($_SESSION['Import_message']['message'] == null) {
usleep(250000); // 0.25 sec
}

As session was already expired, this ends in infinite loop. I suggest:
1.) Prevent session expiration while uploading/importing a file (better solution).
OR
2.) Check if session wasn't expired inside that loop and logout a user.

Discussion

  • Ashutosh Dhundhara

    does this bug still needs a patch or has it been patched ?

     
  • Isaac Bennetch

    Isaac Bennetch - 2014-03-07

    It's open and not assigned to anyone, so as near as I can tell yes, it should still need to be fixed.

    Of course, if you wish to try to fix it, you should first reproduce it to make sure you actually accomplish the proper fix :)

     
  • Ashutosh Dhundhara

    I tried to fix this.

    https://github.com/phpmyadmin/phpmyadmin/pull/1028

    please let me know if it works.

     
  • Madhura Jayaratne

    • assigned_to: Madhura Jayaratne
     
  • Aayush

    Aayush - 2014-12-29

    if this bug is fixed? or the patch is required.?
    if yes, then please also tell me the approx size of "large" database to reproduce this bug?

     
  • azurIt

    azurIt - 2015-01-02

    Unfortunately i don't have time for this now so i suggest to close it and i will reopen it later if the bug is still present. Thank you.

     
  • Marc Delisle

    Marc Delisle - 2015-01-02
    • status: open --> out-of-date
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.