Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update Beaker Parameters in config_declaration.yaml#7133

Merged
smotornyuk merged 3 commits into
masterfrom
beaker-session-parameters-in-config-file
Oct 18, 2022
Merged

Update Beaker Parameters in config_declaration.yaml#7133
smotornyuk merged 3 commits into
masterfrom
beaker-session-parameters-in-config-file

Conversation

@kowh-ai
Copy link
Copy Markdown
Contributor

@kowh-ai kowh-ai commented Oct 11, 2022

Fixes #7128 #7092 #7120

Proposed fixes:

The config_declaration.yaml file contains 3 Beaker Session settings that need to be initialised in a newly generated CKAN config file (ckan.ini or production.ini for a Docker install)

These are:

beaker.session.cookie_expires
beaker.session.cookie_domain
beaker.session.timeout

It seems when the PR #7068 was merged it caused this error:

File "/usr/lib/ckan/default/lib/python3.8/site-packages/beaker/util.py", line 281, in verify_options raise Exception(error) Exception: Cookie expires was not a boolean, datetime, int, or timedelta instance. ...

Features:

  • includes tests covering changes
  • includes updated documentation
  • includes user-visible changes
  • includes API changes
  • includes bugfix for possible backport

Please [X] all the boxes above that apply

@amercader amercader added this to the CKAN 2.10 milestone Oct 14, 2022
@frapercan
Copy link
Copy Markdown

frapercan commented Oct 18, 2022

It worked for me :D.

@smotornyuk smotornyuk merged commit 33be34e into master Oct 18, 2022
@smotornyuk smotornyuk deleted the beaker-session-parameters-in-config-file branch October 18, 2022 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Beaker Session parameters need to be initialised in the CKAN config file

4 participants