Skip to content

Update Beaker Parameters in config_declaration.yaml #7133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 18, 2022

Conversation

kowh-ai
Copy link
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

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