Skip to content

[Bug]: REST Client PATCH not working when combining Rest Connection with URL from field #7558

Description

@PhilipCubix

Apache Hop version?

2.18.1

Java version?

21.0.11

Operating system

Windows

What happened?

Hi,

when combining a base URL in a Rest Connection metadata and the URL from field option, Hop combines these elements correctly into the full URL, but doesn't manage to perform the request:

"REST Client" uses the complete URL (from a field), and "REST Client 2" uses the Rest Connection together with the field urlPart and puzzles together both into the full URL. However, only "REST Client" manages to do the PATCH, and output rows to log.

"REST Client 2" has no output

2026/07/17 15:14:48 [Detailed] REST client.0 - Response time (milliseconds): [406] for [https://api.restful-api.dev/objects/ff8081819d82fab6019f701d06c074a4]
2026/07/17 15:14:48 [Basic] Write to log.0 -
2026/07/17 15:14:48 [Basic] Write to log.0 - ------------> Linenr 1------------------------------
2026/07/17 15:14:48 [Basic] Write to log.0 - urlPart = /ff8081819d82fab6019f701d06c074a4
2026/07/17 15:14:48 [Basic] Write to log.0 - body = {"name": "apple macbook pro 16 updated at 2026-07-17 15:14:47 via full URL"}
2026/07/17 15:14:48 [Basic] Write to log.0 - result = {"id":"ff8081819d82fab6019f701d06c074a4","name":"apple macbook pro 16 updated at 2026-07-17 15:14:47 via full URL","updatedAt":1784294088155,"data":{"year":2020,"price":1849.99,"CPU model":"Intel Core i9","Hard disk size":"1 TB"}}
2026/07/17 15:14:48 [Basic] Write to log.0 - httpCode = 200
2026/07/17 15:14:48 [Basic] Write to log.0 -
2026/07/17 15:14:48 [Basic] Write to log.0 - ====================
2026/07/17 15:14:48 [Basic] REST client.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
2026/07/17 15:14:48 [Basic] Write to log.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
2026/07/17 15:14:50 [Detailed] REST client 2.0 - Connecting to [https://api.restful-api.dev/objects/ff8081819d82fab6019f701d06c074a4] ...

test-patch.zip

Issue Priority

Priority: 3

Issue Component

Component: Transforms

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions