Details
-
Bug
-
Resolution: Invalid
-
Critical
-
1.6.1
-
eZ Enterprise 1.6.1
Description
Studio UI does not respect default_siteaccess yml setting.
Consider this configuration:
siteaccess: list: - portal_english - portal_french - site groups: site_group: - portal_french - site - portal_english default_siteaccess: portal_french match: # URIElement: 1 //This line has been intentionally commented Compound\LogicalAnd: portal_english: matchers: Map\URI: en: true Map\Host: ezenterprise161-studio-clean.local: true match: portal_french french: matchers: Map\URI: french: true fr: true Map\Host: ezenterprise161-studio-clean.local: true match: portal_french Map\Host: ezenterprise161-studio-clean.local: portal_english (...)
I added a debug on vendor/ezsystems/studio-ui-bundle/SiteAccess/ReverseMatcher.php, line 64:
64 $matcher = $this->getMatcher($siteAccessName); dump($siteAccessName); dump($matcher); die(); 65 $request = $matcher->getRequest();
Accessing from http://ezenterprise161-studio-clean.local/ez the result will be:
ReverseMatcher.php on line 64:
"portal_english"ReverseMatcher.php on line 64:
null
The default_siteaccess is not respected. It should be portal_french but the first siteaccess on the list (portal_english) was used instead.
Attachments
Issue Links
- relates to
-
EZEE-1209 eZ Studio 1.6.1: ReverseMatcher doesn't work correctly
- Closed