Skip to content

[Bug]: Regression in REST Connection metadata: API Key header not applied when sending requests in 2.17; additional error when Test URL is empty #6524

@CarlosJuncher03

Description

@CarlosJuncher03

Apache Hop version?

2.17

Java version?

17

Operating system

Windows

What happened?

In version 2.17, when configuring a REST connection via metadata using an API key (setting the header name and value, e.g., Authorization: Bearer ), the header value is not validated/applied when the request is sent to the API.

If I change the authentication method to Basic Authentication and provide username/password, the request works.

Additionally, if the Test URL field is left blank, Hop fails to test/validate the connection.

Steps to reproduce

Open Hop 2.17.

Create/edit Metadata → REST Connection.

Select authentication by API key.

Fill in:

Header name: Authorization (or any other)

Header value:

If you create a rets connection in 2.16, it won't work in 2.1

Issue Priority

Priority: 3

Issue Component

Component: Hop Gui

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions