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

ESI not working properly with ftp file handler

    XMLWordPrintable

Details

    Description

      You must use the ftp filehander, not fs (FileHandler=FTP)

      You must have an ftp server running (and configured for the testsystem). You also need access to this ftp server in order to check that files is being uploaded

      (Read instructions in extension/ezsi/doc/documentation.html on how to do this)

      After connecting to the FTP server, there is no esitest/si-blocks folders.
      Even if the folders are created, the Validation the the source has:
      <b>ESI block below : </b><br><esi:include src="var/si-blocks/101920469c97a1ad97530c2f8208b38f.htm" ttl="120s" onerror="continue"/>

      isn't visible, instead

      <b>ESI block below : </b><br> <br/><br/>

      Steps to reproduce
      Setup - clear ftp server
      
      1- Login to the ftp server and delete any cache files located there
      
      $ ftp localhost
      Name: esitest
      Password: esitest
      ftp> cd esitest/si-blocks
      ftp> del <any file that is in this folder>
      ftp> bye
      
      Setup - create the template
      
      1. Log in as admin in admin interface (add "/plain_site_admin" to the URL  as plain_site is the default)
      2. Click "Design" in top menu
      3. Click "Templates" in left menu
      4. Click "/node/view/full.tpl" link (4th link below "Most common templates" )
      5. Select "plain_site" in drop down
      6. Click "Set" button
      7. Click "New override" button
      8. Enter form data:
       Extension: No extension
       Filename : article
       Class : Article
       View (without children) : checked
      
      9. Click "OK" button
      10. Click "Edit" icon for the article template
      11. At the bottom if the input field, add the following code:
      <br/><br/>
      <b>ESI block below : </b><br>
      {si-block key="1" ttl="120s"}
      This is a esi test: time :  {currentdate()|l10n("time")} <br/>
      {/si-block}
       <br/><br/>
      
      Setup - Create the test article
      
      1. Click "Content structure"
      2. Click "Create here" button
      3. Enter form data:
       Title : test article
       Intro : This is the intro
      
      4. Click "Send for publishing" button
      5. Logout
      
      Verify first execution of a template
      
      1. View plain site
      2. Verify that you get the following on the page:
       SSI block below :
      
      3. Verify that one file is created on ftp server
      4. Verify that the content of this file on the ftp server is  (the time will be your local time):
       This is a esi test: time :  4:44:43 pm <br/>
      5. View the source of the page (which is displayed in the browser)
      6. Validate the the source has (Filename could be different but should match the name of the file found in #6 above):
       <b>ESI block below : </b><br><esi:include src="var/si-blocks/101920469c97a1ad97530c2f8208b38f.htm" ttl="120s" onerror="continue"/>
      
      

      Attachments

        Activity

          People

            bd bd
            pedro.resende pedro.resende
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: