Commons VFS
  1. Commons VFS
  2. VFS-316

HttpFileSystemConfigBuilder needs option for preemptive authentication

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Labels:
      None
    • Environment:

      IIS WebDAV

      Description

      I find that the credential challenges produced by the WebdavFileSystem as it uses the HttpClient creates a great deal of superfluous HTTP traffic just to perform BASIC authentication. In some scenarios, dumbed-down preemptive authentication is needed for swifter traversals of the repository.

      I suggest adding preemptive authentication to HttpFileSystemConfigBuilder and HttpClientFactory to address this problem.

      1. PREEMPTIVEAUTH.patch
        5 kB
        David Hausladen

        Activity

        Hide
        Ralph Goers added a comment -

        I reviewed and applied the patch. I am sure that I will also take advantage of this functionality. Please review and close.

        Show
        Ralph Goers added a comment - I reviewed and applied the patch. I am sure that I will also take advantage of this functionality. Please review and close.
        Hide
        James Carman added a comment -

        Do you have a test case for this?

        Show
        James Carman added a comment - Do you have a test case for this?
        Hide
        David Hausladen added a comment -

        adds setPreemptiveAuth method to HttpFileSystemConfigBuilder and consumes it in HttpClientFactory. Permits streamlined auth for cases when throughput is important.

        Show
        David Hausladen added a comment - adds setPreemptiveAuth method to HttpFileSystemConfigBuilder and consumes it in HttpClientFactory. Permits streamlined auth for cases when throughput is important.

          People

          • Assignee:
            Unassigned
            Reporter:
            David Hausladen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development