--- a/server/src/main/java/org/iri_research/renkan/controller/RenkanController.java Mon Aug 19 11:47:29 2013 +0200
+++ b/server/src/main/java/org/iri_research/renkan/controller/RenkanController.java Wed Oct 23 03:01:44 2013 +0200
@@ -80,9 +80,6 @@
this.logger.debug("renkanProject : " + project_id + " Accept : " + accept_header!=null?accept_header:"" + ", cowebkey: "+ cowebkey!=null?cowebkey:"");
- if(accept_header != null && accept_header.matches(".*image/.*")) {
- throw new HttpMediaTypeNotSupportedException("Do not produce image");
- }
if(project_id == null || project_id.length() == 0) {
throw new IllegalArgumentException("RenkanContoller.renkanProject: Project id is null or empty.");
--- a/server/src/main/webapp/WEB-INF/templates/renkanProjectEdit.html Mon Aug 19 11:47:29 2013 +0200
+++ b/server/src/main/webapp/WEB-INF/templates/renkanProjectEdit.html Wed Oct 23 03:01:44 2013 +0200
@@ -76,7 +76,7 @@
],
};
var space_config = /*[[${space.binConfig}?${space.binConfig}:'{}']]*/"{}";
- space_config = JSON.parse(space_config);
+ space_config = JSON.parse(space_config || "{}");
var _renkan = new Rkns.Renkan($.extend({}, renkan_config, space_config));
var corenkanConfig = {
projectId: /*[[${project.id}]]*/"new_project",