#3521 new
Alex

Prototype generate a lot of GET queries

Reported by Alex | September 6th, 2013 @ 11:10 AM

Good day!

We have a problem with the Prototype 1.7.1. Some users with different browsers (Opera 12.14, 12.15, 12,16; Firefox/23.0) when visiting the site, generate a lot of queries that contain the code of the prototype (see attached file).

When the user opens one page, the browser generates about 20 such GET requests.
We try to disable all scripts on the site and use prototype.js only for this users but requests continued. We try to use a different of prototype versions - but there is still a problem.

Requests of this kind:
http://second.by/rydenkoo/function%20each(iterator,%20context)%20%7...

We can not reproduce this bug.

We will be grateful to you help, because currently the server receives a large load due its requests.
Our site has about 3 million pageviews per days.

Thank you!

Comments and changes to this ticket

  • Jason Westbrook

    Jason Westbrook September 10th, 2013 @ 04:01 AM

    all of the functions on the list of requests are methods of the Array Prototype. I also am not able to replicate the issue but I had a thought that this might be a Firefox/Opera plugin that is running all of these requests.

    I also checked on some of the urls in the text file attached and it looks like you are using 1.7 vs 1.7.1 - upgrading might fix the issue but I'm not sure.

    Are you able to capture the requests on the server side? for instance using mod_rewrite and if it starts with "function" dump all the headers to a file? Any of the request that are requested through PrototypeJS Ajax.Request calls will have the X-Prototype-Version: 1.7 or X-Prototype-Version: 1.7.1 header set and if those headers are not present then this is not being requested through PrototypeJS but through something else.

    let me know what you find out.

  • Alex

    Alex September 17th, 2013 @ 04:26 PM

    Unfortunately, switching to 1.7.1 did not change anything.
    Here is the request headers:

    GET /stervochka_12/4132334/function%20detect(iterator,%20context)%20{%20%20%20%20var%20result;%20%20%20%20this.each(function(value,%20index)%20{%20%20%20%20%20%20if%20(iterator.call(context,%20value,%20index,%20this))%20{%20%20%20%20%20%20%20%20result%20=%20value;%20%20%20%20%20%20%20%20throw%20$break;%20%20%20%20%20%20}%20%20%20%20},%20this);%20%20%20%20return%20result;%20%20} HTTP/1.1

    User-Agent: Opera/9.80 (Windows NT 6.1; U; Edition Yx; ru) Presto/2.8.131 Version/11.11
    Host: second.by
    Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/webp, image/jpeg, image/gif, image/x-xbitmap, /;q=0.1
    Accept-Language: ru-RU,ru;q=0.9,en;q=0.8
    Accept-Encoding: gzip, deflate
    Referer: http://second.by/stervochka_12/4132334/osvejitel_air_wick.html
    Cookie: weather=26850; muid=106584594216; new_ct=1; storm=1; cntry=%3Chtml%3E%0D%0A%3Chead%3E%3Ctitle%3E503+Service+Temporarily+Unavailable%3C%2Ftitle%3E%3C%2Fhead%3E%0D%0A%3Cbody+bgcolor%3D%22white%22%3E%0D%0A%3Ccenter%3E%3Ch1%3E503+Service+Temporarily+Unavailable%3C%2Fh1%3E%3C%2Fcenter%3E%0D%0A%3Chr%3E%3Ccenter%3Enginx%2F0.8.54%3C%2Fcenter%3E%0D%0A%3C%2Fbody%3E%0D%0A%3C%2Fhtml%3E%0D%0A; apr=1; pay_type=3; podnv=1; mill=1; elot=1; lastcat=375; PHPSESSID=jh23661he1td5gr8quo36ebcf0; comments_count=0; messages_count=0; last_messages_count=0; rtn4p=3; __ut
    Connection: Keep-Alive

    GET /flal1/messages/function%20intersect(array)%20%7B%20%20%20%20return%20this.uniq().findAll(function(item)%20%7B%20%20%20%20%20%20return%20array.indexOf(item)%20!==%20-1;%20%20%20%20%7D);%20%20%7D HTTP/1.1

    User-Agent: Opera/9.80 (Windows NT 6.1; WOW64) Presto/2.12.388 Version/12.15
    Host: second.by
    Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/webp, image/jpeg, image/gif, image/x-xbitmap, /;q=0.1
    Accept-Language: ru-RU,ru;q=0.9,en;q=0.8
    Accept-Encoding: gzip, deflate
    Referer: http://second.by/flal1/messages/
    Cookie: weather=26850; muid=106598498012; cntry=XX; new_ct=1; storm=1; pay_type=2; podnv=1; mill=1; lpp=20; elot=1; lastcat=159; lastsubcat=178; PHPSESSID=njh5n8vfm5cvtus5e3choks9t6; comments_count=0; messages_count=1; last_messages_count=1; ym_visorc=w; __utma=200214188.1330945803.1366749222.1379354188.1379419242.415; __utmb=200214188.2.10.1379419242; __utmc=200214188; __utmz=200214188.1378932021.397.7.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=%D0%BE%D0%B1%D1%83%D0%B2%D1%8C%20%D1%84%D0%B8%D1%80%D0%BC%D1%8B%20ojey; _utmv=; rtn4p=2
    Connection: Keep-Alive

    GET /natakryshneva/function%20toArray()%20%7B%20%20%20%20return%20this.map();%20%20%7D HTTP/1.1

    User-Agent: Opera/9.80 (Windows NT 5.1) Presto/2.12.388 Version/12.15
    Host: second.by
    Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/webp, image/jpeg, image/gif, image/x-xbitmap, /;q=0.1
    Accept-Language: ru-RU,ru;q=0.9,en;q=0.8
    Accept-Encoding: gzip, deflate
    Referer: http://second.by/natakryshneva/
    Cookie: weather=26850; mill=1; muid=106538526758; cntry=XX; new_ct=1; storm=1; podnv=1; lastcat=159; lastsubcat=197; PHPSESSID=altl2fsj4e9unp1op36hl3c2g1; rtn4p=1; comments_count=0; messages_count=0; last_messages_count=0; __utma=200214188.359769027.1377811744.1379409951.1379419503.8; __utmb=200214188.1.10.1379419503; __utmc=200214188; __utmz=200214188.1377811744.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
    Connection: Keep-Alive

  • Yuriy

    Yuriy September 18th, 2017 @ 02:53 PM

    Good day!

    We have the same problem with strange requests which generated very often.
    Any help will be appreciated.

    "GET /ib/function%20each(iterator,%20context)%20%7B%20%20%20%20var%20index%20=%200;%20%20%20%20try%20%7B%20%20%20%20%20%20this._each(function(value)%20%7B%20%20%20%20%20%20%20%20iterator.call(context,%20value,%20index++);%20%20%20%20%20%20%7D);%20%20%20%20%7D%20catch%20(e)%20%7B%20%20%20%20%20%20if%20(e%20!=%20$break)%20throw%20e;%20%20%20%20%7D%20%20%20%20return%20this;%20%20%7D HTTP/1.1" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36"

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket

Attachments

Pages