Skip to content
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

dev/drupal#179 - kcfinder - Explicit start of Drupal session #342

Merged
merged 1 commit into from
May 9, 2022
Merged

dev/drupal#179 - kcfinder - Explicit start of Drupal session #342

merged 1 commit into from
May 9, 2022

Conversation

semseysandor
Copy link
Contributor

Before

https://lab.civicrm.org/dev/drupal/-/issues/179
After successful authentication, KCFINDER options added to $_SESSION will be overwritten when Drupal initializes the session.

After

In this PR, session is started before those options are added in checkAuthentication() so they're preserved when they get checked in \kcfinder\uploader::__construct().

This change should affect Drupal 8 and 9 only. Also this method would get called by \CRM_Core_Config::singleton()->userSystem->getSessionId() later anyway.

@civicrm-builder
Copy link

Can one of the admins verify this patch?

@civibot
Copy link

civibot bot commented May 6, 2022

(Standard links)

@civibot civibot bot added the master label May 6, 2022
@demeritcowboy
Copy link
Contributor

jenkins add to whitelist

@jaomalley
Copy link

Yes, this patch does fix the problem.

I had already made the appropriate modifications to htaccess to establish permissions at the webserver level, but then I was receiving application level permission problems. I was like???? NICE Catch. This one had me tearing my hair out.

@demeritcowboy
Copy link
Contributor

Thanks @semseysandor for the patch and @jaomalley for testing. Going to merge and noting that this change is limited to kcfinder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants