Showing error for incorrectly closed tag fails

Bug #511322 reported by Timo Arnivuo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
play framework
Status tracked in 1.0
1.0
Fix Released
Low
Unassigned
1.1
Fix Committed
Undecided
Unassigned

Bug Description

I had incorrectly closed crud.table tag. Opening tag had slash so closing tag threw exception.

#{crud.table fields:['content', 'post', 'author'] /}
 #{crud.custom 'content'}
  <a href="@{Comments.show(object.id)}">
   ${object.content.length() > 50 ? object.content[0..50] + '…' : object.content}
  </a>
 #{/crud.custom}
 #{/crud.table}

 Unfortunately 500.html template fails to present this exception with IndexOutOfBoundsException

Template execution error (In {play}/framework/templates/tags/500.html around line 101)
Execution error occured in template {play}/framework/templates/tags/500.html. Exception raised was IndexOutOfBoundsException : toIndex = 26.

This is really minor issue as initial reason can be seen from log.

Erwan Loisant (eloisant)
Changed in play:
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.