hop icon indicating copy to clipboard operation
hop copied to clipboard

[Bug]: HTTP Post transform in pipeline receives http 302 from servlet exposed on the same(or another) apache hop instance

Open enjoyy2 opened this issue 9 months ago • 1 comments

Apache Hop version?

2.8.0

Java version?

22.0.1 2024-04-16

Operating system

Windows

What happened?

HTTP Post transform calling another apache hop servlet results in HTTP 302 status code. Calling the same servlet from another client like soapUI, results in HTTP 200.

Create 2 pipelines for exposing 2 webservices. Issue happens in the same apache hop server instance and also in different instances, like 2 docker images

From 1 pipeline try to call the second one and wait for a response, print out the HTTP code.

endpoint from second pipeline https://hop-snd-server.cloud.com/hop/webService?service=MockWS",

From log:

2024/05/24 10:13:13 - Hop - Pipeline opened. 2024/05/24 10:13:13 - Hop - Launching pipeline [testRedirectMock]... 2024/05/24 10:13:13 - Hop - Started the pipeline execution. 2024/05/24 10:13:13 - testRedirectMock - Executing this pipeline using the Local Pipeline Engine with run configuration 'local' 2024/05/24 10:13:13 - testRedirectMock - Execution started for pipeline [testRedirectMock] 2024/05/24 10:13:13 - Generate random value.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0) 2024/05/24 10:13:13 - Set field value to a constant.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0) 2024/05/24 10:13:14 - Write to log.0 - 2024/05/24 10:13:14 - Write to log.0 - ------------> Linenr 1------------------------------ 2024/05/24 10:13:14 - Write to log.0 - testReq = <ODM xmlns="http://www.cdisc.org/ns/odm/v1.3" ODMVersion="1.2" xmlns:mdsol="http://www.mdsol.com/ns/odm/metadata" FileType="Transactional" FileOID="test" CreationDateTime="2024-05-24T13:51:50"></ODM> 2024/05/24 10:13:14 - Write to log.0 - result = 2024/05/24 10:13:14 - Write to log.0 - httpRestulCode = 302 2024/05/24 10:13:14 - Write to log.0 - 2024/05/24 10:13:14 - Write to log.0 - ==================== 2024/05/24 10:13:14 - HTTP post.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0) 2024/05/24 10:13:14 - Write to log.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0) 2024/05/24 10:13:14 - HTTP client.0 - Finished processing (I=0, O=0, R=0, W=1, U=0, E=0) 2024/05/24 10:13:14 - testRedirectMock - Pipeline duration : 0.431 seconds [ 0.431" ] 2024/05/24 10:13:14 - testRedirectMock - Execution finished on a local pipeline engine with run configuration 'local' image

Issue Priority

Priority: 2

Issue Component

Component: Hop Server, Component: Pipelines, Component: Transforms

enjoyy2 avatar May 24 '24 07:05 enjoyy2