Details
-
Bug
-
Resolution: Fixed
-
High
-
3.0.0-beta6
Description
It's possible to create a site in Site Factory without any public access, which breaks the admin panel.
Setup:
Use setup from https://github.com/ezsystems/ezplatform-ee/pull/130
*Steps to reproduce:
1. Login as admin
2. Go to "Site" > Site Factory (click the icon)
3. Click "Create"
4. Enter the Site name and select layout "RoadShow"
5. Select the existing access and remove it
6. Create the Site
Expected:
It's not possible to create the site
Actual:
Exception:
json_decode() expects parameter 1 to be string, null given at vendor/ezsystems/ezplatform-site-factory/src/lib/SiteDomainMapper.php:106 at json_decode(null, true) (vendor/ezsystems/ezplatform-site-factory/src/lib/SiteDomainMapper.php:106) at EzSystems\EzPlatformSiteFactory\SiteDomainMapper->buildPublicAccessDomainObject(array('id' => '1', 'name' => 'test', 'created' => '1584903722', 'public_access_identifier' => null, 'site_id' => null, 'site_access_group' => null, 'status' => null, 'config' => null, 'site_matcher_host' => null))