Skip to content
  • Hjem
  • Seneste
  • Etiketter
  • Populære
  • Verden
  • Bruger
  • Grupper
Temaer
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Kollaps
FARVEL BIG TECH
  1. Forside
  2. Bug Reports
  3. Redirect loop

Redirect loop

Planlagt Fastgjort Låst Flyttet Bug Reports
7 Indlæg 2 Posters 11 Visninger
  • Ældste til nyeste
  • Nyeste til ældste
  • Most Votes
Svar
  • Svar som emne
Login for at svare
Denne tråd er blevet slettet. Kun brugere med emne behandlings privilegier kan se den.
  • C This user is from outside of this forum
    C This user is from outside of this forum
    chartung@community.nodebb.org
    wrote sidst redigeret af
    #1

    Opening a topic on our forum in Brave results in a redirect loop: instead of returning a 200 status, it returns a 302 status with a Location header pointing to the same URL (at which point it repeats the same request and gets the same response).

    • The issue only happens in Brave; the site works correctly in Chrome and Safari.
    • The issue does not happen when running the site locally.
    • I cannot replicate the issue on community.nodebb.org.
    • There are no errors in the logs.
    • If left running for long enough, occasionally it will break out of the loop and show the correct page.
    • We recently installed a fork of github.com/julianlam/nodebb-plugin-session-sharing (modified to get user data from Keycloak’s userinfo endpoint rather than directly from the access token); the issue seems to be related to this plugin, since it went away when I deactivated the plugin and started happening again after I reactivated it.
    julian@community.nodebb.orgJ 1 Reply Last reply
    0
    • C chartung@community.nodebb.org

      Opening a topic on our forum in Brave results in a redirect loop: instead of returning a 200 status, it returns a 302 status with a Location header pointing to the same URL (at which point it repeats the same request and gets the same response).

      • The issue only happens in Brave; the site works correctly in Chrome and Safari.
      • The issue does not happen when running the site locally.
      • I cannot replicate the issue on community.nodebb.org.
      • There are no errors in the logs.
      • If left running for long enough, occasionally it will break out of the loop and show the correct page.
      • We recently installed a fork of github.com/julianlam/nodebb-plugin-session-sharing (modified to get user data from Keycloak’s userinfo endpoint rather than directly from the access token); the issue seems to be related to this plugin, since it went away when I deactivated the plugin and started happening again after I reactivated it.
      julian@community.nodebb.orgJ This user is from outside of this forum
      julian@community.nodebb.orgJ This user is from outside of this forum
      julian@community.nodebb.org
      wrote sidst redigeret af
      #2

      chartung just one topic? All other topics work fine?

      Brave comes with ad blocking yes? Let me know the url. I bet it’s related to that.

      1 Reply Last reply
      0
      • C This user is from outside of this forum
        C This user is from outside of this forum
        chartung@community.nodebb.org
        wrote sidst redigeret af
        #3

        julian No, it’s not just one topic. After further testing, it appears that it can happen randomly on any page of the site, and once it happens once it usually keeps happening on every page on the site at least for several minutes or until I delete the express.sid cookie. Since it appears to be random, I can’t say for certain that it’s only affecting Brave (that’s the only browser I’ve seen the issue on, but it’s also the browser I use most often).

        julian@community.nodebb.orgJ 1 Reply Last reply
        0
        • C chartung@community.nodebb.org

          julian No, it’s not just one topic. After further testing, it appears that it can happen randomly on any page of the site, and once it happens once it usually keeps happening on every page on the site at least for several minutes or until I delete the express.sid cookie. Since it appears to be random, I can’t say for certain that it’s only affecting Brave (that’s the only browser I’ve seen the issue on, but it’s also the browser I use most often).

          julian@community.nodebb.orgJ This user is from outside of this forum
          julian@community.nodebb.orgJ This user is from outside of this forum
          julian@community.nodebb.org
          wrote sidst redigeret af
          #4

          chartung are there any logs emitted when this starts happening? On the backend that is

          1 Reply Last reply
          0
          • C This user is from outside of this forum
            C This user is from outside of this forum
            chartung@community.nodebb.org
            wrote sidst redigeret af
            #5

            julian No, there is nothing in the logs.

            1 Reply Last reply
            0
            • C This user is from outside of this forum
              C This user is from outside of this forum
              chartung@community.nodebb.org
              wrote sidst redigeret af
              #6

              julian I think I found the problem. When I forked the plugin, I removed the lines related to req.session.loginLock, thinking they were unnecessary; on further inspection, it appears that I was mistaken and the loginLock is actually essential to preventing redirect loops when revalidating.

              julian@community.nodebb.orgJ 1 Reply Last reply
              0
              • C chartung@community.nodebb.org

                julian I think I found the problem. When I forked the plugin, I removed the lines related to req.session.loginLock, thinking they were unnecessary; on further inspection, it appears that I was mistaken and the loginLock is actually essential to preventing redirect loops when revalidating.

                julian@community.nodebb.orgJ This user is from outside of this forum
                julian@community.nodebb.orgJ This user is from outside of this forum
                julian@community.nodebb.org
                wrote sidst redigeret af
                #7

                chartung ah… Yes 😁 usually they’re in there for a reason hehe

                Glad you figured it out!

                1 Reply Last reply
                0
                Svar
                • Svar som emne
                Login for at svare
                • Ældste til nyeste
                • Nyeste til ældste
                • Most Votes


                • Log ind

                • Har du ikke en konto? Tilmeld

                • Login or register to search.
                Powered by NodeBB Contributors
                Graciously hosted by data.coop
                • First post
                  Last post
                0
                • Hjem
                • Seneste
                • Etiketter
                • Populære
                • Verden
                • Bruger
                • Grupper