Details
-
Bug
-
Resolution: Fixed
-
High
-
2.5.5
-
None
-
Description
When multiple repositories are used (Multisite Setup) and form is submitted records are inserted to ezform_form_submission_data for default connection (not one that is set for Siiteaccess).
Steps to reproduce
1. Clean installation of eZ Platform 2.5.5
2. Set two connections for two different databases: con1 and con2 and db1, db2. Add the second cache pool and second repository(rep1 and rep2). Set default_connection: con1.
3. In ezplatform.yml set:
ezpublish: # HttpCache settings, By default 'local' (Symfony HttpCache Proxy), by setting it to 'http' you can point it to Varnish # You may also set it to 'fastly' if you want to use the fastly CDN http_cache: purge_type: '%purge_type%' # Repositories configuration, setup default repository to support solr if enabled repositories: rep1: storage: engine: legacy connection: con1 config: {} search: engine: '%search_engine%' connection: con1 rep2: storage: engine: legacy connection: con2 config: {} search: engine: '%search_engine%' connection: con2 # Siteaccess configuration, with one siteaccess per default siteaccess: list: [site1, site2, admin1, admin2] groups: site_group: [site1, site2] admin_group: [admin1, admin2] default_siteaccess: site1 match: URIElement: 1
and
system: site1: languages: [eng-GB] repository: rep1 cache_service_name: '%cache_pool%' admin1: languages: [eng-GB] repository: rep1 cache_service_name: '%cache_pool%' page_builder: siteaccess_list: [site1] site2: languages: [eng-GB] cache_service_name: '%cache_pool%2' repository: rep2 admin2: cache_service_name: '%cache_pool%2' languages: [eng-GB] repository: rep2 page_builder: siteaccess_list: [site2]
4. Go to admin2. Creat a new Form and publish it. Add form to the Home Content.
5. Open Home in site2 SiteAccess. Submit form.
Result
Data from Form will be added to ezform_form_submission_data in db1 (con1) instead db2 (con2).
Expected Result
Data from From will be added to ezform_form_submission_data in db2 (con2).