Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-18749

(tc-396) host_uri mapping not working

    XMLWordPrintable

    Details

      Description

      After changing the site.ini.apppend.php to use the host_uri MatchOrder method ... when we accessed any of the mappings they all point to the same siteacess
      There are this php warning in the debug:

      Notice: PHP: E_NOTICE 	Oct 10 2011 11:01:09
      
      Undefined variable: uriString in /var/www/apache2php53/ezp/.run/kernel/classes/ezsiteaccess.php on line 291
      
      Notice: PHP: E_NOTICE 	Oct 10 2011 11:01:09
      
      Undefined variable: uriString in /var/www/apache2php53/ezp/.run/kernel/classes/ezsiteaccess.php on line 291
      
      Notice: PHP: E_NOTICE 	Oct 10 2011 11:01:09
      
      Undefined variable: uriString in /var/www/apache2php53/ezp/.run/kernel/classes/ezsiteaccess.php on line 291
      
      Steps to reproduce
      Steps 	
      Change the site.ini to contemplate the “Host” configuration if not present
      $vi .run/settings/override/site.ini.append.php
      [SiteAccessSettings]
      MatchOrder=host_uri
      AvailableSiteAccessList[]=plain_site
      AvailableSiteAccessList[]=plain_site_admin   
      [SiteAccessSettings]
      HostUriMatchMapItems[]=ezp430snapshot.paulo.cleverti.qa.ezpublish.no;eng;plain_site
      HostUriMatchMapItems[]=ezp430snapshot.paulo.cleverti.qa.ezpublish.no;admin;plain_site_admin
      HostUriMatchMapItems[]=ezp430snapshot2.paulo.cleverti.qa.ezpublish.no;eng;plain_site_admin
      HostUriMatchMapItems[]=ezp430snapshot2.paulo.cleverti.qa.ezpublish.no;admin;plain_site
      
      Log in
      
      1. Login into Admin as Admin (access using your configuration access for admin. Ex: http://ezp430snapshot.paulo.cleverti.qa.ezpublish.no/admin)
      2. Create a “News” Folder
      3. Click on “Content structure” link on top menu
      4. Create an object of the “Folder” class
      5. Click on “Create new” button
      6. Select "Folder" in the class dropdown
      7. Fill in the following form fields
      8. Name: News
      9. Click on “Send for Publishing” button
      
       
      
      Create an article
      
      1. Click on “Content structure” link on top menu
      2. Click on “News” folder link
      3. Create an object of the “Article” class
      4. Click on “Create new” button
      5. Select "Article" in the class dropdown
      6. Fill in the following form fields
             Title: Article 01
             Short Title: Article 01
              Intro: This is an article.
      7. Click on “Send for Publishing” button
      
      Verify that the created article can be seen in preview
      
      1. Click on “Content structure” link on top menu
      2. Click on “News” folder link
      3. Click on “Article 01” link
      4. If the preview is disable, enable it
      5. Verify that the presented article in preview is the “Article 01”
      6.  Logout
      
      Consult the article 01 in Plain_Site
      
      1. Log in as admin in Plain Site  (access using your configuration access for plain site. Ex: http://ezp430snapshot.paulo.cleverti.qa.ezpublish.no/eng)
      2. Go to the end of the page and click on “News” link
      3. Go to the end of the page and click on “Article 01” link
      4. Verify that the presented article is the “Article 01”
      

        Attachments

          Activity

            People

            • Assignee:
              andre1 André R
              Reporter:
              jpingo João Pingo
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: