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

BUG: Can't set connection options in PdoBackend #3157

Closed
1 task done
pagani-BETTERHOMES opened this issue Sep 11, 2023 · 0 comments
Closed
1 task done

BUG: Can't set connection options in PdoBackend #3157

pagani-BETTERHOMES opened this issue Sep 11, 2023 · 0 comments
Labels

Comments

@pagani-BETTERHOMES
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

In Neos.Cache/Classes/Backend/PdoBackend.php you can't set driverOptions like in Neos.Flow.persistence.backendOptions.
Therefore no SSL connection can be established like it's required for some hostings.

Expected Behavior

driverOptions are being recognized and handled like in Neos.Flow.persistence.backendOptions

Steps To Reproduce

Caches.yaml

Flow_Session_Storage:
  backend: Neos\Cache\Backend\PdoBackend
  backendOptions:
    dataSourceName: 'mysql:host={{DB_HOST}};dbname={{DB_NAME}};charset=utf8mb4'
    username: '{{DB_USER}}'
    password: '{{DB_PASSWORD}}'
    cacheTableName: 'cache_session_storage'
    tagsTableName: 'cache_session_storage_tags'
    driverOptions:
      '%PDO::MYSQL_ATTR_SSL_CA%': 'https://cacerts.digicert.com/DigiCertGlobalRootG2.crt.pem'
      '%PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT%': false

Environment

- Flow:8.3
- PHP:8.2

Anything else?

No response

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 a pull request may close this issue.

1 participant