Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Add ability to revalidate external resource requests

The argument allows Cache-Control: max-age=0 to be added in cases where it's desirable for artifact repositories or caching proxies to revalidate requests:

- Listing version metadata

- Resource has exceeded it's cache lifetime on disk, such as dynamic/snapshot dependencies or when --refresh-dependencies is specified

  1. … 22 more files in changeset.
Merged internal `ResourceException` into public `ResourceException`.

  1. … 36 more files in changeset.
Renamed `o.g.internal.resource.Resource` to `TextResource`.

  1. … 34 more files in changeset.
Cleaned out a bunch of TODOs

  1. … 30 more files in changeset.
Use system default route planner when configuring http client

- This change will now use the appropriate proxy depending on the target URL

- This means HTTP proxy with be used for nonsecure connections and HTTPS proxy for secure connections, exclusively

- The old implementation used the HTTPS proxy for all connections if one was configured

Disable https tests for now.

+review REVIEW-5736

  1. … 1 more file in changeset.
Use fully-qualified @o.g.a.Incubating in packages

This is a less verbose, less awkward syntax and allows for simpler

programmatic addition / removal when neccessary.

    • -3
    • +1
    ./authentication/http/package-info.java
  1. … 35 more files in changeset.
Synchronize calls to close() as well

+review REVIEW-5736

Revert "Only synchronize client access when initializing"

This reverts commit d3c545239c9c810f659e398443cb3d2a020fde9e.

Only synchronize client access when initializing

+review REVIEW-5736

Fix potential thread safety issue

+review REVIEW-5736

Defer creating an http client until making an HTTP request.

+review REVIEW-5736

Add caching of ssl contexts

+review REVIEW-5736

    • -0
    • +23
    ./internal/resource/transport/http/SslContextFactory.java
  1. … 3 more files in changeset.
Make proxy configuration more explicit

- No longer rely on HttpClient to inspect system properties for proxy settings

- Use configuration attained from `JavaSystemPropertiesProxySettings` to configure HttpClient

- Prefer HTTPS proxy if one is defined otherwise we fallback to unsecure

+review REVIEW-5736

Update HttpClient to 4.4.1

- This bumps httpclient to 4.4.1 and httpcore to 4.4.4

- Update ':docs' subproject to use same httpclient version to avoid duplicate libraries in IntelliJ

- Incorporated fix for GRADLE-3029 by synchronizing access to 'java.home' system property

- This commit also resolves GRADLE-3250 since SNI support was added in httpclient 4.3.2

+review REVIEW-5736

  1. … 11 more files in changeset.
Revert "Update HttpClient to 4.4.1"

This reverts commit cbafb10057af801054f22f5ebd42853bc9e8817a.

  1. … 11 more files in changeset.
Update HttpClient to 4.4.1

- This bumps httpclient to 4.4.1 and httpcore to 4.4.4

- Update ':docs' subproject to use same httpclient version to avoid duplicate libraries in IntelliJ

- Incorporated fix for GRADLE-3029 by synchronizing access to 'java.home' system property

- This commit also resolves GRADLE-3250 since SNI support was added in httpclient 4.3.2

+review REVIEW-5736

  1. … 11 more files in changeset.
fix log statement formatting to use {} when applicable

+review REVIEW-5646

  1. … 16 more files in changeset.
Address review items for Authentication types

+review REVIEW-5569

    • -0
    • +2
    ./authentication/http/BasicAuthentication.java
    • -0
    • +2
    ./authentication/http/DigestAuthentication.java
  1. … 16 more files in changeset.
Close uploaded file quietly after publishing

+review REVIEW-5590

GRADLE-3333 - close files after reading for publishing via HTTP

Always try preemptive basic if basic auth is added

+review REVIEW-5574

  1. … 1 more file in changeset.
Check authentication types attempted with HttpServer

+review REVIEW-5574

  1. … 2 more files in changeset.
fix checkstyle

  1. … 1 more file in changeset.
Normalize authentication package names

+review REVIEW-5569

    • -25
    • +0
    ./api/authentication/http/package-info.java
    • -0
    • +25
    ./authentication/http/BasicAuthentication.java
    • -0
    • +25
    ./authentication/http/DigestAuthentication.java
    • -0
    • +25
    ./authentication/http/package-info.java
    • -0
    • +26
    ./internal/authentication/DefaultBasicAuthentication.java
    • -0
    • +27
    ./internal/authentication/DefaultDigestAuthentication.java
  1. … 30 more files in changeset.
Move registration of authentication schemes into subprojects

- Introduce AuthenticationSchemeRegistry

- Move new Authentication types to resources-http

+review REVIEW-5569

    • -0
    • +25
    ./api/authentication/http/BasicAuthentication.java
    • -0
    • +25
    ./api/authentication/http/DigestAuthentication.java
    • -0
    • +25
    ./api/authentication/http/package-info.java
    • -0
    • +26
    ./api/internal/authentication/DefaultBasicAuthentication.java
    • -0
    • +26
    ./api/internal/authentication/DefaultDigestAuthentication.java
  1. … 13 more files in changeset.
Addressing some review items for authentication scheme support.

+review REVIEW-5569

  1. … 14 more files in changeset.
Use preemptive authentication when repository is configured for basic auth.

+review REVIEW-5574

  1. … 3 more files in changeset.
Fix broken tests.

+review REVIEW-5569

Resource transport credentials refactoring. - Authentication objects are now passed thru to ResourceConnectionFactory - Connectors now use credentials on Authentication objects for configuration - Removed some usages of duplicate PasswordCredentials class in resources project

+review REVIEW-5569

  1. … 21 more files in changeset.
Remove NtlmAuthentication; push support for this to later story.

+review REVIEW-5569

  1. … 3 more files in changeset.