|
Issue Type:
|
Bug
|
Affects Versions:
|
2.3-beta1
|
Assignee:
|
Andrea Aime
|
Components:
|
REST
|
Created:
|
25/Jan/13 5:49 PM
|
Description:
|
Workspaces with certain names can be created, but cause exceptions when accessed using the REST API:
$ curl -u admin:geoserver -s -X GET http://localhost:8080/geoserver-2.3-beta1/rest/workspaces/workspaces
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>GeoServer Configuration</title>
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW"/>
</head>
<body>
Workspaces
<ul>
Expression values is undefined on line 4, column 8 in workspaces.ftl.
The problematic instruction:
----------
==> list values as w [on line 4, column 1 in workspaces.ftl]
----------
Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Expression values is undefined on line 4, column 8 in workspaces.ftl.
at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:125)
at freemarker.core.IteratorBlock.accept(IteratorBlock.java:100)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.Environment.process(Environment.java:199)
at freemarker.template.Template.process(Template.java:237)
...
This only seems to affect .html but not .json and .xml . A workspace with the name default is rejected.
Known bad names are:
- datastores
- layers
- layergroups
- styles
- workspaces
|
Project:
|
GeoServer
|
Priority:
|
Major
|
Reporter:
|
Benjamin Trigona-Harany
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your [JIRA administrators](https://jira.codehaus.org/secure/ContactAdministrators!default.jspa).
For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)