Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

SharedDirectoryDeleteRequest and SharedDirectoryDeleteResponse#1096

Merged
ibeckermayer merged 2 commits intomasterfrom
isaiah/sd-delete-request-and-response
Aug 14, 2022
Merged

SharedDirectoryDeleteRequest and SharedDirectoryDeleteResponse#1096
ibeckermayer merged 2 commits intomasterfrom
isaiah/sd-delete-request-and-response

Conversation

@ibeckermayer
Copy link
Copy Markdown

@ibeckermayer ibeckermayer commented Aug 10, 2022

Adds the TDP messages and SharedDirectoryManager method necessary to allow users to copy files and directories into the shared directory.

You should now be able to:

  • Navigate the directory tree
  • Read files
  • Write files (< 16kb temporarily)
  • Copy files and directories from the shared directory
  • Copy files and directories into the shared directory
  • Moving files and directories from the shared directory (new)
  • Move files and directories into the shared directory
  • Delete files and directories (new)

Corresponds with: gravitational/teleport#15364

Requires backport to v9/v10

How to test manually

webapps

  1. Change the value below to true
    enableDirectorySharing: false, // note to reviewers: should be false in any PRs.
  2. run the development server like yarn start-teleport --target=https://ec2-35-171-27-185.compute-1.amazonaws.com/
  3. See https://gravitational.slack.com/archives/C02DQ1C2BMW/p1657807702085829 for a username/password combo

What to expect

Go to the top right ... menu and click Share Directory

image

(X-out of the "uncaught exception" screen if you get it). The directory you select should show up in the File Explorer as a shared drive

Screen Shot 2022-07-19 at 14 13 45

The drive should be navigable as well should any folders within it

image

@ibeckermayer ibeckermayer merged commit 3663a14 into master Aug 14, 2022
@ibeckermayer ibeckermayer deleted the isaiah/sd-delete-request-and-response branch August 14, 2022 18:41
@ibeckermayer ibeckermayer restored the isaiah/sd-delete-request-and-response branch August 15, 2022 22:12
ibeckermayer pushed a commit that referenced this pull request Aug 24, 2022
* `SharedDirectoryInfoResponse` (#996)

* `SharedDirectoryListRequest` (#999)

* `SharedDirectoryListResponse` (#1000)

* `SharedDirectoryReadRequest` (#1003)

* `SharedDirectoryReadResponse` (#1005)

* `SharedDirectoryWriteRequest` (#1007)

* `SharedDirectoryWriteResponse` (#1008)

* Tidy up `sharedDirectoryManager` (#1010)

* `SharedDirectoryMoveRequest` (#1045)

* `SharedDirectoryMoveResponse` (#1074)

* `SharedDirectoryCreateRequest` and `SharedDirectoryCreateResponse` (#1090)

* SharedDirectoryDeleteRequest and SharedDirectoryDeleteResponse (#1096)

* Add warning dialog for unsupported browsers for directory sharing (#1110)

* updates yarn.lock
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants