View Issue Details

IDProjectCategoryView StatusLast Update
0007605OXID eShop (all versions)4.01. Database handlingpublic2024-03-01 13:12
ReporterLarsStegelitz Assigned To 
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionduplicate 
Product Version7.0.0 
Summary0007605: DB migration does not use dbDriverOptions from config.inc.php
DescriptionIt's probably a rare case, but affected me lately...

The database migration "oe-eshop-db_migrate" does not consider the "dbDriverOptions" from config.inc.php, making it impossible to activate specific database options.
In my case the customer wanted a SSL encrypted MySQL connection from the shop, for which I had to add the CA certificate via the driver options. Shop runs fine with it.

When trying to run the database migration on the encrypted DB connection, the task fails, because the driver options (with the CA cert path) where missing.

I created a composer patch to circumvent the issue for my project.
Steps To ReproduceTo trigger an error situation is not so easy, as it would require an actual encrypted database connection.
However, you can try to pass any dbDriverOptions from config.inc.php to the migration script and won't see it there.
Additional Information- vendor/oxideshop-doctrine-migration-wrapper/scr/migrations-db.php
Creates the array with driver options for the migration, and it uses hardcoded driver options.

Desired solution: add driver options (if existing) from config.inc.php of the project to here
TagsNo tags attached.
ThemeNot defined
BrowserNot defined
PHP VersionNot defined
Database VersionNot defined

Relationships

duplicate of 0007240 confirmedSvenBrunk Database options from config.inc.php are not used in migrations-db.php 

Activities

QA

2024-03-01 13:12

administrator   ~0016335

Hi Lars,

thank you for your report! This behaviour was already reported (see linked issue). Because of that, I will close this one.

Kind regards!

-MK