[Geoserver-devel] [jira] Created: (GEOS-1992) rest/styles throws Exception on 1.6.x

rest/styles throws Exception on 1.6.x
-------------------------------------

                 Key: GEOS-1992
                 URL: http://jira.codehaus.org/browse/GEOS-1992
             Project: GeoServer
          Issue Type: Bug
    Affects Versions: 1.6.4
            Reporter: Andrea Aime
            Assignee: David Winslow
             Fix For: 1.6.5

Hi David,
hittting http://localhost:8080/geoserver/rest/styles on 1.6.x gives me the followin stack trace:

{code}
Expression page is undefined on line 6, column 18 in HTMLTemplates/styles.ftl.
The problematic instruction:
----------
==> ${page.currentURL} [on line 6, column 16 in HTMLTemplates/styles.ftl]
----------

Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Expression page is undefined on line 6, column 18 in HTMLTemplates/styles.ftl.
  at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
  at freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:134)
  at freemarker.core.Dot._getAsTemplateModel(Dot.java:78)
  at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
  at freemarker.core.Expression.getStringValue(Expression.java:93)
  at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
  at freemarker.core.Environment.visit(Environment.java:208)
  at freemarker.core.MixedContent.accept(MixedContent.java:92)
{code}

It's not critical, but wondering if it may be an issue on trunk as well. I'm not using the "release" configuration,
but the error does not seem config related. Well, let me know

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira