Skip to content

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

Open

Description

@sling-shot

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 ❤️

Activity

  1. added this to the needstriage milestone on Jul 19, 2018
  2. softvision-oana-arbuzov commented on Jul 20, 2018

    @softvision-oana-arbuzov
    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.

  3. wisniewskit commented on Jul 20, 2018

    @wisniewskit
    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).

  4. karlcow commented on Jul 30, 2018

    @karlcow
    Member

    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.

  5. adamopenweb commented on Jul 31, 2018

    @adamopenweb
    Collaborator
  6. added
    type-uaoverride
    on Jul 31, 2018
  7. added
    engine-gecko
    on Apr 30, 2019
  8. cipriansv commented on Jun 27, 2019

    @cipriansv

    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)

  9. changed the title [-]m.rbi.org.in - see bug description[/-] [+]m.rbi.org.in - Website keeps reloading[/+] on Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    browser-firefoxengine-geckopriority-normalstatus-first-contacttype-uaoverride

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions