UPM does not work if proxy server requires authentication -- upgrade PAC Client Library when available.

Description

I pulled this from a support issue, and the best summaries of the problem are these two comments from Vincent:

This ticket is intended for the UPM team or anyone who knows JERSEY API.

The main issue is we cannot get UPM working with a proxy server that requires username and authentication.

We have tried against CC-proxy and the best we can do is get UPM working with CC-PROXY without Authentication.

Adding:

-Dhttp.proxyUser=user -Dhttp.proxyPassword=pass

-Dhttps.proxyUser and -Dhttps.proxyPassword

makes no difference ..still get a 407

We have not tried: http.proxyUserName ...

and Azwandi:

Alright, I could reproduce this by using CCProxy. No issues with {jiraissues} or {html} macros, but the UPM still cannot work. The same stack trace (Error 407) was thrown in the console.

I believe that the UPM is still using a separate HTTP client (com.atlassian.plugins.client.service.AbstractRestServiceClient) from Confluence's (com.atlassian.confluence.util.http.httpclient.HttpClientHttpRetrievalService) This is also a similar cause of https://studio.plugins.atlassian.com/browse/APR-160 which badly affects the legacy plugin repository client. However, I could not identify further why UPM does not work with the parameters and unable to provide a workaround this time.

This seems to be related to the following bugs, but lacking of details to relate to this problem:

https://studio.atlassian.com/browse/UPM-806
https://studio.atlassian.com/browse/UPM-556
https://studio.atlassian.com/browse/PAC-565

Of most import are the other, potentially related bugs as we might be able to roll them all together assuming it's all one root cause.

Environment

None

Testing Notes

None

Security Policy

None

Status

Assignee

Unassigned

Reporter

Adam Laskowski

Team

None

QA Dev

None

Needs Doc

None

Peer Reviewer

None

Mgr Approver

None

CC

None

Product

None

App Key

None

DC app ready for review?

None

Fix versions

Affects versions

Priority

Critical
Configure