Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

m.rbi.org.in - Website keeps reloading #17820

Open
sling-shot opened this issue Jul 19, 2018 · 5 comments
Open

m.rbi.org.in - Website keeps reloading #17820

sling-shot opened this issue Jul 19, 2018 · 5 comments
Labels
browser-firefox engine-gecko The browser uses the Gecko rendering engine priority-normal status-first-contact type-uaoverride Require a UA override for working
Milestone

Comments

@sling-shot
Copy link

URL: https://m.rbi.org.in//Scripts/BS_PressReleaseDisplay.aspx?prid=44533

Browser / Version: Firefox 63.0
Operating System: Android
Tested Another Browser: Yes

Problem type: Something else
Description: Circular redirections happening to https://rbi.org.in infinitely in both Firefox 61 and Nightly 63. The site renders as expected in Brave Browser and Android Webview.
Steps to Reproduce:
Copy-pasted the URL and hit ENTER.

From webcompat.com with ❤️

@softvision-oana-arbuzov
Copy link
Member

Thanks for the report @sling-shot , I was able to reproduce the issue.
Not reproducible on Chrome.
screenshot_1

Debugger:
image

Tested with:
Browser / Version: Firefox Nightly 63.0a1 (2018-07-19)
Operating System: Huawei P10 (Android 7.0) - 1080 x 1920 pixels (~432 ppi pixel density), Samsung Galaxy S7 Edge (Android 7.0) - Resolution 1440 x 2560 pixels (~534 ppi pixel density)

Moving to Needsdiagnosis for further investigation.

@wisniewskit
Copy link
Member

For the record, I also did a little troubleshooting before the user posted this issue. The page also breaks similarly for GeckoView/Focus. If I do a UA-spoof as Chrome, it doesn't break. As such this is likely a faulty UA-sniff on the page itself (whether it's server-side of client-side remains unknown).

@karlcow
Copy link
Member

karlcow commented Jul 30, 2018

The request to https://m.rbi.org.in/Scripts/BS_PressReleaseDisplay.aspx?prid=44533

→ http GET 'https://m.rbi.org.in/Scripts/BS_PressReleaseDisplay.aspx?prid=44533'

HTTP/1.1 302 Found
Cache-Control: private
Content-Length: 64353
Content-Type: text/html; charset=utf-8
Date: Mon, 30 Jul 2018 00:31:26 GMT
Location: https://rbi.org.in
Server: Microsoft-IIS/8.5
Set-Cookie: ASP.NET_SessionId=yxxdtkkj5i2e3ikgqcmhqgom; path=/; HttpOnly
Set-Cookie: IncPath=Includes1; expires=Tue, 30-Jul-2019 00:31:26 GMT; path=/

then

http --print h GET 'https://rbi.org.in/' 'User-Agent:Mozilla/5.0 (Android 7.0.0; Mobile; rv:62.0) Gecko/62.0 Firefox/62.0' 

with

HTTP/1.1 200 OK
Cache-Control: private
Content-Encoding: gzip
Content-Length: 25638
Content-Type: text/html; charset=utf-8
Date: Mon, 30 Jul 2018 00:35:15 GMT
Set-Cookie: ASP.NET_SessionId=byp2clz2zitjy1vipa4yqv3g; path=/; HttpOnly
Set-Cookie: IncPath=Includes1; expires=Tue, 30-Jul-2019 00:35:15 GMT; path=/; HttpOnly
Vary: Accept-Encoding
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block

no redirect server side on rbi.org.in
but one on m.rbi.org.in

→ http --print h GET 'https://m.rbi.org.in/' 'User-Agent:Mozilla/5.0 (Android 7.0.0; Mobile; rv:62.0) Gecko/62.0 Firefox/62.0' 
HTTP/1.1 302 Found
Cache-Control: private
Content-Length: 75062
Content-Type: text/html; charset=utf-8
Date: Mon, 30 Jul 2018 00:37:58 GMT
Location: https://rbi.org.in
Server: Microsoft-IIS/8.5
Set-Cookie: ASP.NET_SessionId=uihiumofjosxqbcw2rp10rqs; path=/; HttpOnly
Set-Cookie: IncPath=Includes1; expires=Tue, 30-Jul-2019 00:37:59 GMT; path=/

and it's why we get an infinite redirect issue.

and… ouch…

    //Redirect to mobile site start
    function detectmob() {
      if (screen.width <= 599 || screen.Height <= 975) {
        return true;
      } else {
        return false;
      }
    }

    if (detectmob()) {
      window.location.href = "https://m.rbi.org.in" + window.location.pathname;


    }
    //Redirect to mobile site End

so a mobile device is something that has a screen width smaller than 600px
or a height inferior to 975px

and for the mobile site configuration (server side sniffing), Firefox Android don't exist.

Moving to needscontact.

@karlcow karlcow modified the milestones: needsdiagnosis, needscontact Jul 30, 2018
@adamopenweb
Copy link
Collaborator

Site is ranked 370 in India.

Contacting via:
https://rbi.org.in/Scripts/helpdesk.aspx

@adamopenweb adamopenweb added type-uaoverride Require a UA override for working status-first-contact labels Jul 31, 2018
@adamopenweb adamopenweb modified the milestones: needscontact, sitewait Jul 31, 2018
@miketaylr miketaylr added the engine-gecko The browser uses the Gecko rendering engine label Apr 30, 2019
@cipriansv
Copy link

I retested the issue and it is still reproducible on my side.

image

Tested with:
Browser / Version: Firefox Nightly 68.0a1 (2019-06-25), Firefox Fenix (Preview) 1.0.1926
Operating System: Huawei P10 (Android 8.0) - 1080 x 1920 pixels (~432 ppi pixel density)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser-firefox engine-gecko The browser uses the Gecko rendering engine priority-normal status-first-contact type-uaoverride Require a UA override for working
Projects
None yet
Development

No branches or pull requests

8 participants