Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data Test run configuration: using a remote file is not working correctly #129

Closed
jonherrmann opened this issue Aug 31, 2017 · 5 comments
Closed

Comments

@jonherrmann
Copy link
Collaborator

Test using:
http://mapy.geoportal.gov.pl/wss/service/CSWINSP/guest/CSWStartup?SERVICE=CSW&REQUEST=GetRecordById&VERSION=2.0.2&ID=76804362-f64e-11e5-9ce9-5e5517507c66&OUTPUTFORMAT=application/xml&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full

Error message:
The uploaded file with type application/octet-stream is not supported and cannot be used

Curl says:
Content-Type: text/xml;charset=UTF-8

@jonherrmann
Copy link
Collaborator Author

jonherrmann commented Aug 31, 2017

Todo:

  • check, if the URL is encoded by the UI
  • server supports the encoded URL

@klimeto
Copy link

klimeto commented Sep 27, 2017

I'm having the same problem.
While trying to use OGC CSW GetRecordById response as a Remote file (URL) option, the app errors in Test Run Initialization failure, not being able to determine the test object type.
While trying the same metadata record with an URL generating an XML, the process results in error Test Run initialization failure: No files were found with a gml or xml file extension.
Only when the URL string contains ".xml", or ".gml" strings the test runs successfully.

@jonherrmann
Copy link
Collaborator Author

jonherrmann commented Sep 28, 2017

@klimeto I am not sure if your issue is part of this error class, as the error messages are different. Note that there is an issue with GetRecordById responses in the current deployment: inspire-eu-validation/ets-repository#96

Please post the complete URL of your service here or mail it to

@jonherrmann
Copy link
Collaborator Author

The issue only occurs if the host header is not set:

JAX:v2.0 herrmann$ curl -v 'http://mapy.geoportal.gov.pl/wss/service/CSWINSP/guest/CSWStartup?SERVICE=CSW&REQUEST=GetRecordById&VERSION=2.0.2&ID=76804362-f64e-11e5-9ce9-5e5517507c66&OUTPUTFORMAT=application/xml&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full' -H 'Host:'
*   Trying 91.223.135.44...
* TCP_NODELAY set
* Connected to mapy.geoportal.gov.pl (91.223.135.44) port 80 (#0)
> GET /wss/service/CSWINSP/guest/CSWStartup?SERVICE=CSW&REQUEST=GetRecordById&VERSION=2.0.2&ID=76804362-f64e-11e5-9ce9-5e5517507c66&OUTPUTFORMAT=application/xml&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full HTTP/1.1
> User-Agent: curl/7.54.0
> Accept: */*
> 
* Recv failure: Connection reset by peer
* stopped the pause stream!
* Closing connection 0
curl: (56) Recv failure: Connection reset by peer

@jonherrmann
Copy link
Collaborator Author

and when the user agent contains the string Java:

curl -v 'http://mapy.geoportal.gov.pl/wss/service/CSWINSP/guest/CSWStN=2.0.2&ID=76804362-f64e-11e5-9ce9-5e5517507c66&OUTPUTFORMAT=application/xml&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full' -H 'User-Agent:Java' -H 'Host:mapy.geoportal.gov.pl'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants