Menu

#4630 (4.3.3) AJAX request infinite loop

4.3.1
fixed
None
1
2014-12-21
2014-12-09
Michael
No

Hello,

we are using the same config as in 4.2.13. After upgrading to 4.3.1 we have the following issue:

  • login with db user
  • phpmyadmin homepage is shown as usual
  • then a not ending AJAX request infinite loop is triggered till the browser crashes (tested with Google Chrome and Mozilla Firefox)

The request is sent to index.php, but it is not waited for the answer. The same request is sent immediately again (50+ per second in my case).

Here is some debug info:

Request Header:

POST /phpmyadmin43/index.php HTTP/1.1
Host: [my.domain.com]
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0
Accept: /
Accept-Language: de,en-US;q=0.7,en;q=0.3
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Referer: https://[my.domain.com]/phpmyadmin43/index.php?token=ffd6e14b84051747101c6e630ab13cca

POST Parameter of Request:

ajax_request true
token ffd6e14b84051747101c6e630ab13cca
db
access_time 0
_nocache 1418119098597240700

Answer Header:

HTTP/1.1 200 OK
Server: nginx
Date: Tue, 09 Dec 2014 09:58:18 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Accept-Encoding
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Last-Modified: Mon, 08 Dec 2014 17:34:16 GMT
Set-Cookie: pma_iv=zoHMj2vHL2AL1W%2BS4i6CHQ%3D%3D; expires=Thu, 08-Jan-2015 09:58:18 GMT; Max-Age=2592000; path=/phpmyadmin43/; secure; httponly
pmaUser-1=nJ4UzMohhLD6PxS%2FiHyv6Q%3D%3D; expires=Thu, 08-Jan-2015 09:58:18 GMT; Max-Age=2592000; path=/phpmyadmin43/; secure; httponly
pmaPass-1=%2F0wwAO6KxKsDP8Rq66TTRw%3D%3D; path=/phpmyadmin43/; secure; httponly
X-ob_mode: 0
Cache-Control: no-cache
Strict-Transport-Security: max-age=31536000

JSON answer:

message "

...dort vorzunehmen.
"
success true
_title "<title><span>[my.domain.com]</span>...hpMyAdmin 4.3.1</title>"
_menuHash "335d1f47"
_menu "

Discussion

  • Michael

    Michael - 2014-12-09

    Here is the rest of the bug report (sorry cannot edit original post):

    JSON answer:

    message "<div id="maincontainer">...dort vorzunehmen.</div>"
    success true
    _title  "<title>[my.domain.com]...hpMyAdmin 4.3.1</title>"
    _menuHash   "335d1f47"
    _menu   "<div id='floating_menuba...at"></div></ul>\n</div>\n"
    _scripts [Object { name="jquery/jquery-1.8.3.min.js", fire=0}, Object { name="sprintf.js", fire=1}, Object { name="ajax.js", fire=0}, 18 mehr...]
    _selflink "index.php?db=&table=&ser...4051747101c6e630ab13cca"
    _displayMessage ""
    _errors "<div class="clearfloat" id="pma_errors"></div>"
    _promptPhpErrors false
    _reloadQuerywindow Object { db="", table="", sql_query=""}
    _params Object { common_query="?token=ffd6e14b84051747101c6e630ab13cca", opendb_url="db_structure.php", safari_browser=0, mehr...}
    

    This request loops till the browser crashes with the same content again and again.

    Best wishes
    Michael

     
  • Madhura Jayaratne

    • assigned_to: Madhura Jayaratne
     
  • Madhura Jayaratne

    • status: open --> pending
     
  • Michael

    Michael - 2014-12-12

    The patch does not fix the issue. The loop does still exist.

     
  • Madhura Jayaratne

    • status: pending --> open
     
  • Madhura Jayaratne

    From the Network tab of Chrome Developer Tool, can you tell me the Request URL where continuous requests are sent to.

     
  • Michael

    Michael - 2014-12-15

    Initiator:

    send @ get_scripts.js.php?token=df6d00692befbcc14e29e93c1585ee37&scripts[]=jquery/jquery-1.8.3.min.js&scri…:2

    v.extend.ajax @ get_scripts.js.php?token=df6d00692befbcc14e29e93c1585ee37&scripts[]=jquery/jquery-1.8.3.min.js&scri…:2

    UpdateIdleTime @ get_scripts.js.php?token=df6d00692befbcc14e29e93c1585ee37&scripts[]=jquery/jquery-1.8.3.min.js&scri…:8241

    wrapped @ get_scripts.js.php?token=df6d00692befbcc14e29e93c1585ee37&scripts[]=jquery/jquery-1.8.3.min.js&scri…:5775

     
  • Madhura Jayaratne

    Can you also tell me the value you get when you execute PMA_commonParams.get('LoginCookieValidity') on the Chrome console?

     
  • Michael

    Michael - 2014-12-15

    PMA_commonParams.get('LoginCookieValidity')
    "2592000"

     
  • Madhura Jayaratne

    • summary: AJAX request infinite loop --> (4.3.3) AJAX request infinite loop
    • status: open --> resolved
    • Priority: 5 --> 1
     
  • Michael

    Michael - 2014-12-15

    confirmed, no loop anymore

    Thanks
    Michael

     
  • Marc Delisle

    Marc Delisle - 2014-12-21
    • Status: resolved --> fixed
     
MongoDB Logo MongoDB