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

          Nuno Oliveira (Inactive) created issue -
          Nuno Oliveira (Inactive) made changes -
          Field Original Value New Value
          Status Open [ 1 ] Confirmed [ 10037 ]
          Gunnstein Lye made changes -
          Status Confirmed [ 10037 ] InputQ [ 10001 ]
          André Rømcke made changes -
          Assignee Jérôme Vieilledent [ jerome.vieilledent@ez.no ]
          Jérôme Vieilledent (Inactive) made changes -
          Status InputQ [ 10001 ] Development [ 3 ]
          Jérôme Vieilledent (Inactive) made changes -
          Status Development [ 3 ] Development review [ 10006 ]
          Affects Version/s 5.0 [ 10300 ]
          Fix Version/s 5.2 Maintenance [ 12782 ]
          Fix Version/s 2014.03 [ 13281 ]
          Jérôme Vieilledent (Inactive) made changes -
          Fix Version/s 5.1 Maintenance [ 12301 ]
          Jérôme Vieilledent (Inactive) made changes -
          Labels template twig
          Component/s Template language [ 10826 ]
          Jérôme Vieilledent (Inactive) made changes -
          Remote Link This issue links to "PR (Web Link)" [ 13904 ]
          Jérôme Vieilledent (Inactive) made changes -
          Status Development review [ 10006 ] Development Review done [ 10028 ]
          Jérôme Vieilledent (Inactive) made changes -
          Status Development Review done [ 10028 ] Documentation done [ 10011 ]
          Pedro Resende (Inactive) made changes -
          Status Documentation done [ 10011 ] QA [ 10008 ]
          Assignee Jérôme Vieilledent [ jerome.vieilledent@ez.no ] Pedro Resende [ pedro.resende@ez.no ]
          Pedro Resende (Inactive) made changes -
          Rank Ranked higher
          Pedro Resende (Inactive) made changes -
          Attachment symfony_prod.log [ 18160 ]
          Pedro Resende (Inactive) made changes -
          Attachment apache.log [ 18161 ]
          Pedro Resende (Inactive) made changes -
          Flagged Impediment [ 10000 ]
          Pedro Resende (Inactive) made changes -
          Flagged Impediment [ 10000 ]
          Pedro Resende (Inactive) made changes -
          Assignee Pedro Resende [ pedro.resende@ez.no ]
          Status QA [ 10008 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Pedro Resende (Inactive) made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Pedro Resende (Inactive) made changes -
          Remaining Estimate 0 minutes [ 0 ]
          Time Spent 3 hours [ 10800 ]
          Worklog Id 47062 [ 47062 ]
          Pedro Resende (Inactive) made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          André Rømcke made changes -
          Workflow eZ Engineering Scrumban Workflow [ 62387 ] EZ* Development Workflow [ 84860 ]
          Jérôme Vieilledent (Inactive) made changes -
          Link This issue relates to EZP-24475 [ EZP-24475 ]
          Alex Schuster made changes -
          Workflow EZ* Development Workflow [ 84860 ] EZEE Development Workflow [ 123563 ]

            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