Hi Alessandro,

Well I tried this again and I get a 303:

$ curl -i -X POST -F "library=http://stanbol.apache.org/ontologies/registries/stanbol_network/SocialNetworks"; http://localhost:8181/ontonet/session/1344417574190

HTTP/1.1 100 Continue

HTTP/1.1 303 See Other
Location: http://localhost:8181/ontonet/session/1344417574190/http://stanbol.apache.org/ontologies/registries/stanbol_network/SocialNetworks
Content-Length: 0
Server: Jetty(6.1.x)

and indeed the Location header value resolves to a resource (this might change though, perhaps I will just replace it with the imports to the ontologies in the library)

It could be that loading some ontology from the library failed to load because of network problems or so, but IIRC it should return some other status code.

ok, I'll do that. Just to make sure I won't blow up my stanbol again this time: this means that I go into the dir ontologymanager/ and there execute my svn update and mvn clean install, right?

Yes, but remember that you must also install the OSGi bundles, so

mvn clean install -PinstallBundle -Dsling.url=[stanbol]/system/console

I did a global update and mvn clean install last night, is this still necessary then?


Would you do that now? I added some more log messages to the session POST, so perhaps we may want to check the DEBUG log after you get a 400.

ok, here's the log it writes when I do the above command for some session S1:

08.08.2012 14:11:41.187 *DEBUG* [24517718@qtp-24391166-25] org.apache.stanbol.ontologymanager.web.resources.SessionResource post(FormDataMultiPart data) 08.08.2012 14:11:41.187 *DEBUG* [24517718@qtp-24391166-25] org.apache.stanbol.ontologymanager.web.resources.SessionResource Found body part of type class com.sun.jersey.multipart.FormDataBodyPart 08.08.2012 14:11:41.187 *ERROR* [24517718@qtp-24391166-25] org.apache.stanbol.ontologymanager.web.resources.SessionResource Nothing to do with session S1.



Reply via email to