Uploaded image for project: 'eZ Platform Enterprise Edition'
  1. eZ Platform Enterprise Edition
  2. EZEE-3046

Admin breaks when a Site without access is created

    XMLWordPrintable

Details

    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))
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            marek.nocon@ibexa.co Marek NocoĊ„
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: