yola / djstopie

Redirect misbehaved versions of IE to an error page.
1 stars 0 forks source link

MS Office and IE7 #6

Open jbuckner opened 10 years ago

jbuckner commented 10 years ago

This is a bit of a bizarre issue brought up by Jen in CS:

If a user puts a link to SiteBuilder in an Excel document (it could happen in other Office apps, but haven't verified), we send them to the "Browser Unsupported" page even if it is opening in Chrome or Firefox. I was doing a bit of digging and for some reason, the initial request to SiteBuilder after the user has clicked the link, identifies itself as IE7, even though the website is being opened in Chrome or Firefox.

It looks like there's some discovery happening at first. Look at the end of the user agent. It has ms-office in it.

Here's the Apache logs from a click from Excel:

Opening in Chrome from Excel:

50.131.200.255 - - [18/Jul/2014:20:15:59 +0000] "OPTIONS / HTTP/1.1" 302 388 "-" "Microsoft Office Protocol Discovery"
50.131.200.255 - - [18/Jul/2014:20:16:00 +0000] "GET / HTTP/1.1" 302 407 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; MDDC; Media Center PC 6.0; SLCC2; ms-office)"
50.131.200.255 - - [18/Jul/2014:20:16:01 +0000] "GET /ide/unsupported-browser.html HTTP/1.1" 200 752 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; MDDC; Media Center PC 6.0; SLCC2; ms-office)"
50.131.200.255 - - [18/Jul/2014:20:16:02 +0000] "GET /ide/unsupported-browser.html HTTP/1.1" 200 751 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36"

Opening in Firefox from Excel:

50.131.200.255 - - [18/Jul/2014:20:19:11 +0000] "OPTIONS / HTTP/1.1" 302 388 "-" "Microsoft Office Protocol Discovery"
50.131.200.255 - - [18/Jul/2014:20:19:13 +0000] "GET / HTTP/1.1" 302 407 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; MDDC; Media Center PC 6.0; SLCC2; ms-office)"
50.131.200.255 - - [18/Jul/2014:20:19:14 +0000] "GET /ide/unsupported-browser.html HTTP/1.1" 200 751 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; MDDC; Media Center PC 6.0; SLCC2; ms-office)"
50.131.200.255 - - [18/Jul/2014:20:19:15 +0000] "GET /ide/unsupported-browser.html HTTP/1.1" 200 753 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0"
216.246.93.163 - - [18/Jul/2014:20:19:16 +0000] "GET /ide/css/cf353345.error.css HTTP/1.1" 304 196 "http://sitebuilder.qa.yola.net/ide/unsupported-browser.html" "Akamai Edge"
50.131.200.255 - - [18/Jul/2014:20:19:17 +0000] "GET /favicon.ico HTTP/1.1" 404 781 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0"
50.131.200.255 - - [18/Jul/2014:20:19:18 +0000] "GET /favicon.ico HTTP/1.1" 404 781 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0"
thomasw commented 10 years ago

This is interesting.

The favicon.ico file is also 404ing according to those logs, but it is definitely there.

thomasw commented 10 years ago

Ping @kahnjw

adrianmoisey commented 10 years ago
adrian@yoshi:~$ curl -v http://sitebuilder.yola.com/favicon.ico > /dev/null
*   Trying 208.75.209.79...
* Connected to sitebuilder.yola.com (208.75.209.79) port 80 (#0)
> GET /favicon.ico HTTP/1.1
> User-Agent: curl/7.30.0
> Host: sitebuilder.yola.com
> Accept: */*
> 
< HTTP/1.1 404 Not Found
< Date: Wed, 23 Jul 2014 06:51:29 GMT
* Server Apache is not blacklisted
< Server: Apache
< Last-Modified: Tue, 22 Jul 2014 21:58:10 GMT
< ETag: "2d617ce-2c0-4fecf51c2aad5"
< Accept-Ranges: bytes
< Content-Length: 704
< Vary: Accept-Encoding
< Yola-ID: sb1 D=398 t=1406098289523004
< Content-Type: text/html
thomasw commented 10 years ago

Ah, sitebuilder, I thought I was looking at yolacom logs.