GithubHelp home page GithubHelp logo

Comments (8)

nimaai avatar nimaai commented on July 18, 2024

to take look at: https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#upgrading-from-rails-5-2-to-rails-6-0

from madek.

nimaai avatar nimaai commented on July 18, 2024

can be reproduced locally. cause: old session cookies created by rails 5.2

from madek.

nimaai avatar nimaai commented on July 18, 2024

problem solution suggestion: changing the secret

https://stackoverflow.com/questions/25031985/rails-4-upgrade-jsonparseerror-for-old-sessions

from madek.

nimaai avatar nimaai commented on July 18, 2024

work done so far: 50c6f44

@DrTom now only update of the secrets in deploy is required. i leave it to you as i don't know what is used to create them.

from madek.

DrTom avatar DrTom commented on July 18, 2024

@nimaai I am not quite happy with changing the secret to facilitate this. That would mean that this has to be done for every instance of madek. Is there a better way to fix this? Maybe enable the old method of reading the contents or catch this exception (then delete the cookie and do a redirect to start over).

from madek.

DrTom avatar DrTom commented on July 18, 2024

:hybrid should do the trick, see

rails/rails#15111 (comment)

from madek.

nimaai avatar nimaai commented on July 18, 2024

:hybrid does not work anymore. next steps:

  1. see if :hybrid can work somehow
  2. catch the exception then delete the cookie
  3. rename the cookie
  4. change the secret as last resort

from madek.

nimaai avatar nimaai commented on July 18, 2024

implemented solution nr. 2: 28c3455

from madek.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.