Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-11545

Update Rails config: cookies_serializer

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • Infra, System
    • None
    • False
    • None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started

      This is related to Rail 7.0 upgrade. We're setting cookies_serializer to :hybrid to allow for gradual upgrade. Once all cookies are rewritten, we can remove the setting to apply the default :json.

          # To migrate an existing application to the `:json` serializer, use the `:hybrid` option.
          #
          # Rails transparently deserializes existing (Marshal-serialized) cookies on read and
          # re-writes them in the JSON format.
          #
          # It is fine to use `:hybrid` long term; you should do that until you're confident *all* your cookies
          # have been converted to JSON. To keep using `:hybrid` long term, move this config to its own
          # initializer or to `config/application.rb`.
          config.action_dispatch.cookies_serializer = :hybrid
      

      That means, we need a released version where value is `:hybrid` and the next version can be left to the default.

              Unassigned Unassigned
              rhn-support-dmayorov Daria Mayorova
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: