Hi all,

I was reviewing the state of ontologymanager Web resources and others after the Clerezza Jena TDB bundlelist was added (thanks Rupert!).

I'm almost sure it's unrelated to the above, but most OntologyManager ontology loading service (via POST Multipart Form Data) seem to fail on my setting. Uploaded files do not seem to be created locally.

If I look at:

https://svn.apache.org/repos/asf/stanbol/trunk/ontologymanager/web/src/main/java/org/apache/stanbol/ontologymanager/web/resources/OntoNetRootResource.java

in the performLoadOntology() method I used to be able to get a POSTed File like this.

file = new File(data.getFormFileParameterValues("file")[0].getFileName())

where data is a org.apache.clerezza.jaxrs.utils.form.MultiPartBody - one of the things that I guess must have changed during the commons-ng move.

Trying that again now, both file.exists() and file.canRead() return false - even after launching Stanbol with -no-security . No idea where POSTdata from a file input are going.

I cannot find other Stanbol Web services that support fileupload so I can compare against them. Do we have any others currently in trunk?

Many Thanks

Alessandro

Reply via email to