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

SharedDirectoryReadResponse#1005

Merged
ibeckermayer merged 52 commits intomasterfrom
isaiah/sd-read-response
Jul 27, 2022
Merged

SharedDirectoryReadResponse#1005
ibeckermayer merged 52 commits intomasterfrom
isaiah/sd-read-response

Conversation

@ibeckermayer
Copy link
Copy Markdown

Adds SharedDirectoryReadResponse

Requires backport to v9/v10

Raises #1004

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

Trying to open a file should show you the file contents (if you open it in Notepad for example). You will be able to type into the file, but if you save the session will crash.

image

image

Isaiah Becker-Mayer added 30 commits July 6, 2022 15:53
): Promise<Uint8Array> {
this.checkReady();

const fileHandle = await this.walkPath(path);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These awaits should probably be wrapped with a try/catch

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense as a first impression, but actually I want them to just throw that up to the client.ts::Client

@ibeckermayer ibeckermayer changed the base branch from isaiah/sd-read-request to master July 27, 2022 23:12
@ibeckermayer ibeckermayer enabled auto-merge (squash) July 27, 2022 23:16
@ibeckermayer ibeckermayer merged commit c10ac64 into master Jul 27, 2022
ibeckermayer pushed a commit that referenced this pull request Aug 23, 2022
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.

3 participants