Skip to content
This repository was archived by the owner on Aug 21, 2023. It is now read-only.
This repository was archived by the owner on Aug 21, 2023. It is now read-only.

Support authenticated directory listings #43

@matyasselmeci

Description

@matyasselmeci

If doing writeback and the destination directory is read-protected, checking if the destination is a directory fails as follows:

time="2022-06-21T12:11:58-04:00" level=debug msg="In UploadFile"
time="2022-06-21T12:11:58-04:00" level=debug msg="Dest stash:///ospool/PROTECTED/matyas.selmeci/myenv21"
time="2022-06-21T12:11:58-04:00" level=debug msg="Failed to ReadDir: ReadDir /ospool/PROTECTED/matyas.selmeci/myenv21: 403 Forbidden - PROPFIND /ospool/PROTECTED/matyas.selmeci/myenv21 for URL: https://origin-auth2001.chtc.wisc.edu:1095/"
time="2022-06-21T12:11:58-04:00" level=warning msg="Received an error from checking if dest was a directory.  Going to continue as if there was no error"

The token should be used for the ReadDir call, not just writing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions