opengeospatial / teamengine

TEAM Engine (Test, Evaluation, And Measurement Engine) is an engine for testing web services and other resources written in JAVA. It executes test scripts written in Compliance Test Language (CTL), TestNG and other languages. It is lightweight and easy to run as a command line or to setup as a service. It can be used to test any type of service or encoding. It is also the official tool used by the Open Geospatial Consortium (OGC) for compliance testing.
Apache License 2.0
45 stars 41 forks source link

HTTPParser doesn't follow 302 redirect #476

Closed hwbllmnn closed 2 years ago

hwbllmnn commented 3 years ago

Describe the bug

When the HTTPParser is used and the requested resource delivers a HTTP 302 redirect, it will not follow the redirect but deliver an empty body.

To Reproduce Steps to reproduce the behavior:

  1. Run any test with an URL which delivers a HTTP 302 redirect

Expected behavior

I would expect the HTTPParser to follow the Location header and deliver the response body of that URL.

Screenshots

not applicable

Additional context

none

dstenger commented 3 years ago

Thank you for reporting.

g-weber commented 3 years ago

Dear all, have you made any progress on this issue in the meantime?

dstenger commented 3 years ago

Following service can be used to reproduce the behavior: http://geoportal.bafg.de/arcgis1/rest/services/INSPIRE/Catchment/MapServer/exts/InspireView/service?VERSION=1.3.0&SERVICE=WMS&REQUEST=Getcapabilities

I assume that this error will only occur with CTL tests as TestNG tests use their own parsers.

hwbllmnn commented 3 years ago

True. As I wrote, I traced it to the HTTPParser class which is only used from CTL AFAIK.

dstenger commented 3 years ago

We are planning to resolve this issue in Q4.