Fix save on Opera.

This commit is contained in:
Paulo Gustavo Veiga 2013-03-02 21:29:26 -03:00
parent 9cabfb14a5
commit bf3bd5c1c7
2 changed files with 2 additions and 4 deletions

View File

@ -29,6 +29,4 @@ Template Path: /service/admin/users/{userId}/password
Creating a new user:
* Template Path: /service/admin/users/
* Method: Post
* curl "http://{host.name}:{host.port}/{context.path}/service/admin/users/" --request post --basic -u "admin@wisemapping.org:admin" -H "Content-Type:text/json" --data "{email:"some email", lastname:"last name",fistname="my first name",password:"password"}"
* curl "http://{host.name}:{host.port}/{context.path}/service/admin/users" --request post --basic -u "admin@wisemapping.org:admin" -H "Content-Type:application/json" --data '{"email": "te2@mydomain.de", "lastname": "lastname", "firstname":"myfirstname","password":"password"}'

View File

@ -112,7 +112,7 @@ public class MindmapServiceImpl
throw new WiseMappingException("Could not be decoded.",e);
}
if (!xml.startsWith("<map") || !xml.endsWith("</map>")) {
if (!xml.endsWith("</map>")) {
throw new WiseMappingException("Map seems not to be a valid mindmap: '"+xml +"'");
}