opengeospatial / ets-19139

ets-19139
Apache License 2.0
3 stars 1 forks source link

Submission of metadata documents for validation instead of URLs #4

Closed bermud closed 9 years ago

bermud commented 9 years ago

Not all metadata documents exist at URL's. Add capability to submit a metadata document for validation

bozyurt commented 9 years ago

The metadata to be validated will be in XML and the request will be a HTTP POST.

bermud commented 9 years ago

The ISO XML record is generated on the fly from its MongoDB representation and passed as a POST body form field (iut) string value to

http://cite-dev-03.opengeospatial.org/teamengine/rest/suites/iso19139/1.0/run

I am getting

HTTP/1.1 500 Internal Server Error [Date: Wed, 18 Feb 2015 23:13:33 GMT, Server: Apache, X-Frame-Options: SAMEORIGIN, Content-Type: text/html;charset=utf-8, Content-Language: en, Content-Length: 3680, Connection: close]

Apache Tomcat/7.0.53 - Error report

HTTP Status 500 -


type Exception report

message

description The server encountered an internal error that prevented it from fulfilling this request.

exception

java.lang.NullPointerException
    com.sun.jersey.multipart.impl.MultiPartReaderClientSide.unquoteMediaTypeParameters(MultiPartReaderClientSide.java:244)
    com.sun.jersey.multipart.impl.MultiPartReaderClientSide.readMultiPart(MultiPartReaderClientSide.java:171)
    com.sun.jersey.multipart.impl.MultiPartReaderServerSide.readMultiPart(MultiPartReaderServerSide.java:80)
    com.sun.jersey.multipart.impl.MultiPartReaderClientSide.readFrom(MultiPartReaderClientSide.java:157)
    com.sun.jersey.multipart.impl.MultiPartReaderClientSide.readFrom(MultiPartReaderClientSide.java:85)
    com.sun.jersey.spi.container.ContainerRequest.getEntity(ContainerRequest.java:490)
    com.sun.jersey.spi.container.ContainerRequest.getEntity(ContainerRequest.java:555)
    com.sun.jersey.multipart.impl.FormDataMultiPartDispatchProvider$FormDataInjectableValuesProvider.getInjectableValues(FormDataMultiPartDispatchProvider.java:122)
    com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$EntityParamInInvoker.getParams(AbstractResourceMethodDispatchProvider.java:153)
    com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:183)
    com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
    com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
    com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
    com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
    com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
    com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)
    com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)
    com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
    com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
    com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
    com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:540)
    com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:715)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

note The full stack trace of the root cause is available in the Apache Tomcat/7.0.53 logs.


Apache Tomcat/7.0.53

bermud commented 9 years ago

@aashishlodha @upendra-sachan @tanvi-shah please review this issue!

tanvi-shah commented 9 years ago

Hi Luis. Could you please tell us what did you send in your POST body? Along with the values that you passed in parameters.

bermud commented 9 years ago

@bozyurt Can you please provide more details as requested by @tanvi-shah Thank you zoo much!!

bozyurt commented 9 years ago

I am passing a single parameter 'iut' having as value the content of the attached ISO XML file as string

to the POST body.

Burak

I. Burak Ozyurt, PhD Associate Project Scientist UCSD Dept of Psychiatry 9500 Gilman Drive MC 0855 La Jolla, CA 92093-0855 Tel: 858-246-0606


From: Luis Bermudez [notifications@github.com] Sent: Friday, February 20, 2015 11:39 AM To: opengeospatial/ets-19139 Cc: Ozyurt, Ibrahim Subject: Re: [ets-19139] Submission of metadata documents for validation instead of URLs (#4)

@bozyurthttps://github.com/bozyurt Can you please provide more details as requested by @tanvi-shahhttps://github.com/tanvi-shah Thank you zoo much!!

— Reply to this email directly or view it on GitHubhttps://github.com/opengeospatial/ets-19139/issues/4#issuecomment-75305231.

bozyurt commented 9 years ago

I have attached the ISO xml file zipped again to prevent blocking of xml files by mail server.

Burak

I. Burak Ozyurt, PhD Associate Project Scientist UCSD Dept of Psychiatry 9500 Gilman Drive MC 0855 La Jolla, CA 92093-0855 Tel: 858-246-0606


From: Luis Bermudez [notifications@github.com] Sent: Friday, February 20, 2015 11:39 AM To: opengeospatial/ets-19139 Cc: Ozyurt, Ibrahim Subject: Re: [ets-19139] Submission of metadata documents for validation instead of URLs (#4)

@bozyurthttps://github.com/bozyurt Can you please provide more details as requested by @tanvi-shahhttps://github.com/tanvi-shah Thank you zoo much!!

— Reply to this email directly or view it on GitHubhttps://github.com/opengeospatial/ets-19139/issues/4#issuecomment-75305231.

upendra-sachan commented 9 years ago

I have pushed the ISO19139 into amazon server(http://cite-dev-03.opengeospatial.org/teamengine/) as well as git-hub with solution of issue #4.

upendra-sachan commented 9 years ago

Step to perform solution: Pass the ISO xml file and schematron file like this: {"iut":"content of XML file", "sch":"content of Schematron file"} Use Content-Type: text/plain

bermud commented 9 years ago

@bozyurt , please let us know if this solution is working for you.