restlet / restlet-framework-java

The first REST API framework for Java
https://restlet.talend.com
Other
654 stars 284 forks source link

OData. Parser crash while generating form metadata. #1220

Open tbw777 opened 8 years ago

tbw777 commented 8 years ago

5.zip Hello. I can't parse this $metadata (content in 5.xml). If I removing sap:label attribute with extended characters (with errors on it while parsing) I see errors too. Please upgrade your parser.

Exception in thread "main" java.lang.NoClassDefFoundError: freemarker/template/Configuration at org.restlet.ext.odata.Generator.generate(Generator.java:241) at org.restlet.ext.odata.Generator.main(Generator.java:140) Caused by: java.lang.ClassNotFoundException: freemarker.template.Configuration at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 2 more

Also I need to set csrf at header and basic auth, how I can do this?

Thank you.

tbw777 commented 8 years ago

I'm skip this by delete all 'sap' attributes from tags with publishing edited metadata on local server without authorization.