[Geoserver-users] content.ftl ignored if SLD contains > 20 (OGC filter?) rules

Details
-Geoserver 2.2 running on Apache Tomcat 7.0.30

Hello, I have been searching for some time but haven't found anything to do
with this specific issue yet...

I am looking to style > 20 types of records based on an attribute's value.
But when I do, GetFeatureInfo requests ignore my content.ftl file.

Thorough steps to reproduce (Skip to the end for screenshots):

1. On a stock Geoserver installation, modify web.xml so that
MAX_FILTER_RULES > 21, for example:
  <context-param>
    <param-name>MAX_FILTER_RULES</param-name>
    <param-value>100</param-value>
  </context-param>
2. Start Geoserver and navigate to the admin web
interface(http://localhost:8080/geoserver/web/)
3. Go to the "Styles" tab and select "Add a new style"
4. Set the name to "Point_broken" and add the following to the style:

Notice that this is the default Point style, but with 20 very similar rules.

5. Go to "Layers"->"archsites"->"Publishing" tab. Change "Default Style" to
Point_broken. Save the change.
6. Create the file "content.ftl" in "geoserver/data/workspaces/sf" with the
following content:
  
7. Select "Layer Preview" and the OpenLayers link for sf:archsites
8. Select any triangle in the display. It will display the string "We have
found a cat!"
9. Go to the "Styles" tab and select "Point_broken"
10. Add another rule to the style:

Save the change.

11. Select "Layer Preview" and the OpenLayers link for sf:archsites
12. Select any triangle in the display. It ignores our content.ftl, and
displays the default table of values

Why is this? The example may be slightly contrived, but it shows what I'm
trying to do. I am looking to style > 20 types of records based on an
attribute's value.

Is this a known bug? It seems suspicious that it fails at the same value as
the default MAX_FILTER_RULES value.

Here are some screenshots:
20 Rules: http://i.imgur.com/OCjW4.png
21 Rules: http://i.imgur.com/3YTJL.png

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/content-ftl-ignored-if-SLD-contains-20-OGC-filter-rules-tp5021269.html
Sent from the GeoServer - User mailing list archive at Nabble.com.