Skip to content

PGM ConsoleAuthenticator displays "Username for null: " #273

Description

@kwin

Version

7.8.0-SNAPSHOT

Operating System

MacOS

Bug description

The ConsoleAuthenticator relies on Authenticator.getRequestURI() for calculating the realm string in

. Unfortunately this is not populated with a non null value for Apache HTTP Client 4.5.14 (https://issues.apache.org/jira/browse/HTTPCLIENT-1748). This is only fixed in Apache HTTP Client 5.0.0 (https://github.com/apache/httpcomponents-client/pull/55/changes#diff-518a2b7487762a0d22a3afb690f50beff9b6f1d5d42d603388c9e3619a91b3ecL104).

As a workaround there should be some fallback in case Authenticator.getRequestingURL() returns null.

Actual behavior

That leads to emitting Username for null: when basic auth is triggered for e.g. a git clone via jgit clone https://github.com/Netcentric/calendar-sync.git.

Expected behavior

There should be some proper realm name emitted like Username for github.com

Relevant log output

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions