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

Exception not thrown when twig template does not exist

    Details

      Description

      In the new stack, eZ Publish does not properly throw an exception if a template does not exist.

      Steps to reproduce:

      1. In a controller, try to render a non-existent template:

      return $this->render( 'HootsuiteBaseBundle::nonexistent.html.twig' );
      

      Instead of throwing an exception, the output just shows the path to the non-existent template.

      2. In a controller, check whether a non-existent template exists:

      if( $this->get( 'templating' )->exists( 'eztTrainingBundle::nonexistent.html.twig' ) )
      {
      	die( 'exists' );
      }
      

      The "exists" check always returns true.

      1. apache.log
        1 kB
        Pedro Resende
      2. symfony_prod.log
        1 kB
        Pedro Resende

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Confirmed Confirmed
          2m 17s 1 nuno.oliveira@ez.no 19/Mar/14 4:50 PM
          Confirmed Confirmed InputQ InputQ
          1d 22h 47m 1 Gunnstein Lye 21/Mar/14 3:38 PM
          InputQ InputQ Development Development
          2d 22h 17m 1 jerome.vieilledent@ez.no 24/Mar/14 1:55 PM
          Development Development Development Review Development Review
          33m 5s 1 jerome.vieilledent@ez.no 24/Mar/14 2:28 PM
          Development Review Development Review Development Review done Development Review done
          19h 10m 1 jerome.vieilledent@ez.no 25/Mar/14 9:39 AM
          Development Review done Development Review done Documentation Review done Documentation Review done
          2m 1s 1 jerome.vieilledent@ez.no 25/Mar/14 9:41 AM
          Documentation Review done Documentation Review done QA QA
          3m 59s 1 pedro.resende@ez.no 25/Mar/14 9:45 AM
          QA QA Closed Closed
          5h 37m 1 pedro.resende@ez.no 25/Mar/14 3:23 PM
          Closed Closed Reopened Reopened
          2h 31m 1 pedro.resende@ez.no 25/Mar/14 5:55 PM
          Reopened Reopened Closed Closed
          1s 1 pedro.resende@ez.no 25/Mar/14 5:55 PM

            People

            • Assignee:
              Unassigned
              Reporter:
              Nuno Oliveira (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours
                3h